Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-12-07 23:18:19 +0000
committerKevin Sawicki2011-12-07 23:18:19 +0000
commit1e396d431483d6b04dd12a73da84cb8860469d9a (patch)
tree9b99fc36dcde22c9673028d4b6923dca5bc2d46c
parentbe2b32a9c9e4d2cc58f2aece44242b2b7bb03834 (diff)
downloadegit-github-1e396d431483d6b04dd12a73da84cb8860469d9a.tar.gz
egit-github-1e396d431483d6b04dd12a73da84cb8860469d9a.tar.xz
egit-github-1e396d431483d6b04dd12a73da84cb8860469d9a.zip
Set Accept header to 'application/vnd.github.beta+json'
This was the JSON version the model classes were derived from Change-Id: Ib1d020bdc0099656e560f4f566434cfab4ab95e2
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
index 331426f7..3344340a 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java
@@ -107,7 +107,8 @@ public class GitHubClient {
private Header userAgent = USER_AGENT;
- private final Header accept = new BasicHeader("Accept", "application/json"); //$NON-NLS-1$ //$NON-NLS-2$
+ private final Header accept = new BasicHeader(
+ "Accept", "application/vnd.github.beta+json"); //$NON-NLS-1$ //$NON-NLS-2$
private final String prefix;

Back to the top