send authentication header on all requests

This commit is contained in:
Honza Brázdil
2012-09-12 18:04:59 +02:00
parent 52108707bb
commit e658a7fa6b
12 changed files with 39 additions and 43 deletions

View File

@@ -99,7 +99,7 @@ public class GHCommitComment {
public void update(String body) throws IOException {
GHCommitComment r = new Requester(owner.root)
.with("body", body)
.withCredential().method("PATCH").to(getApiTail(), GHCommitComment.class);
.method("PATCH").to(getApiTail(), GHCommitComment.class);
this.body = body;
}
@@ -107,7 +107,7 @@ public class GHCommitComment {
* Deletes this comment.
*/
public void delete() throws IOException {
new Requester(owner.root).withCredential().method("DELETE").to(getApiTail());
new Requester(owner.root).method("DELETE").to(getApiTail());
}
private String getApiTail() {