mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 00:11:22 +00:00
send authentication header on all requests
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user