added test and modified url

This commit is contained in:
Sladyn Nunes
2020-04-06 18:13:26 +05:30
committed by Liam Newman
parent 21e9dd6f51
commit 191dd49653
2 changed files with 7 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ public class GHBranch {
* if disabling protection fails
*/
public void disableProtection() throws IOException {
root.createRequest().method("DELETE").withUrlPath(protection_url).send();
root.createRequest().method("DELETE").setRawUrlPath(protection_url).send();
}
/**