]> khamidou — GitHub mirrors - electron.git/commitdiff
Accept still-preview apis.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 26 Sep 2013 08:38:08 +0000 (16:38 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 26 Sep 2013 08:38:08 +0000 (16:38 +0800)
script/lib/github.py

index 6b9528bc34dce24473dbdb504b048df32becf535..3aa75c6279379e4d5f9ee797c34e4321c3c7c7dd 100644 (file)
@@ -16,6 +16,7 @@ class GitHub:
     if not 'headers' in kw:
       kw['headers'] = dict()
     kw['headers']['Authorization'] = self._authorization
+    kw['headers']['Accept'] = 'application/vnd.github.manifold-preview'
 
     return getattr(requests, method)(url, **kw)