Skip to content

Commit

Permalink
Merge pull request #105 from petrosh/master
Browse files Browse the repository at this point in the history
Specify v3 version on Accept header
  • Loading branch information
michael committed Aug 15, 2014
2 parents ff5e99c + e93e77e commit a16d2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}
}
};
xhr.setRequestHeader('Accept','application/vnd.github.raw+json');
xhr.setRequestHeader('Accept','application/vnd.github.v3.raw+json');
xhr.setRequestHeader('Content-Type','application/json;charset=UTF-8');
if ((options.token) || (options.username && options.password)) {
xhr.setRequestHeader('Authorization', options.token
Expand Down

0 comments on commit a16d2f3

Please sign in to comment.