Skip to content

Commit

Permalink
Merge pull request #28 from duojs/update/remove-custom-accept
Browse files Browse the repository at this point in the history
Removing now unnecessary custom Accept header
  • Loading branch information
dominicbarnes committed Jul 23, 2015
2 parents 9759a81 + 14dc53f commit 5722a93
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ exports.commit = function* (token, options) {

function* get(token, parts, slug, cache, page) {
var uri = url.resolve('https://api.github.com/', parts.join('/'));
var headers = {
// TODO: remove this on July 21, once repository redirects are enabled by default
// @see https://developer.github.com/changes/2015-05-26-repository-redirects-are-coming/
'Accept': 'application/vnd.github.quicksilver-preview+json',
'User-Agent': 'duo:gh-resolve'
};
var headers = { 'User-Agent': 'duo:gh-resolve' };
debug('--> GET %s', uri);

var localCacheKey = uri;
Expand Down

0 comments on commit 5722a93

Please sign in to comment.