diff options
author | Kevin Sawicki | 2011-12-07 23:18:19 +0000 |
---|---|---|
committer | Kevin Sawicki | 2011-12-07 23:18:19 +0000 |
commit | 1e396d431483d6b04dd12a73da84cb8860469d9a (patch) | |
tree | 9b99fc36dcde22c9673028d4b6923dca5bc2d46c | |
parent | be2b32a9c9e4d2cc58f2aece44242b2b7bb03834 (diff) | |
download | egit-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.java | 3 |
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; |