We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066af55 commit c2f560aCopy full SHA for c2f560a
src/main/java/org/kohsuke/github/GitHubClient.java
@@ -410,6 +410,9 @@ private GitHubRequest prepareRequest(GitHubRequest request) throws IOException {
410
builder.setHeader("Authorization", authorization);
411
}
412
413
+ if (request.header("Accept") == null) {
414
+ builder.setHeader("Accept", "application/vnd.github.v3+json");
415
+ }
416
builder.setHeader("Accept-Encoding", "gzip");
417
418
if (request.inBody()) {
0 commit comments