From b916595da372a5e072b4ae90beb9e1a846664f26 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Wed, 20 Apr 2016 01:13:08 +0900 Subject: [PATCH] (refs #1154)Fix path of request to the branch protection API --- .../twirl/gitbucket/core/settings/branchprotection.scala.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html b/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html index bbd78abc3..9fe6ee735 100644 --- a/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html +++ b/src/main/twirl/gitbucket/core/settings/branchprotection.scala.html @@ -107,7 +107,7 @@ function submitForm(e){ var protection = getValue(); $.ajax({ method:'PATCH', - url:'/api/v3/repos/@repository.owner/@repository.name/branches/@encodeRefName(branch)', + url:'@path/api/v3/repos/@repository.owner/@repository.name/branches/@encodeRefName(branch)', contentType: 'application/json', dataType: 'json', data:JSON.stringify({protection:protection}),