Skip to content

Commit a16d2f3

Browse files
committed
Merge pull request #105 from petrosh/master
Specify v3 version on Accept header
2 parents ff5e99c + e93e77e commit a16d2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555
}
5656
};
57-
xhr.setRequestHeader('Accept','application/vnd.github.raw+json');
57+
xhr.setRequestHeader('Accept','application/vnd.github.v3.raw+json');
5858
xhr.setRequestHeader('Content-Type','application/json;charset=UTF-8');
5959
if ((options.token) || (options.username && options.password)) {
6060
xhr.setRequestHeader('Authorization', options.token

0 commit comments

Comments
 (0)