Change requester to GET by default

This commit is contained in:
Liam Newman
2019-11-25 18:05:18 -08:00
parent 1b55b5fa3c
commit 3296cef02d
47 changed files with 252 additions and 180 deletions

View File

@@ -176,7 +176,7 @@ public class GHProject extends GHObject {
}
private void edit(String key, Object value) throws IOException {
new Requester(root).withPreview(INERTIA).with(key, value).method("PATCH").to(getApiRoute());
root.retrieve().method("POST").withPreview(INERTIA).with(key, value).method("PATCH").to(getApiRoute());
}
/**
@@ -270,7 +270,7 @@ public class GHProject extends GHObject {
* the io exception
*/
public void delete() throws IOException {
new Requester(root).withPreview(INERTIA).method("DELETE").to(getApiRoute());
root.retrieve().method("POST").withPreview(INERTIA).method("DELETE").to(getApiRoute());
}
/**