8000 Drop preview header from reviews API call · sigmavirus24/github3.py@f957edf · GitHub
[go: up one dir, main page]

Skip to content

Commit f957edf

Browse files
committed
Drop preview header from reviews API call
As of https://developer.github.com/changes/2017-05-09-end-black-cat-preview/ the reviews endpoint is no longer preview, and is now an official part of the API. It is no longer necessary to set a header when accessing this endpoint.
1 parent c82e90e commit f957edf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

github3/pulls.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,8 @@ def reviews(self, number=-1, etag=None):
421421
endpoint
422422
:returns: generator of :class:`PullReview <PullReview>`\ s
423423
"""
424-
# Accept the preview headers for reviews
425-
headers = {'Accept': 'application/vnd.github.black-cat-preview+json'}
426424
url = self._build_url('reviews', base_url=self._api)
427-
return self._iter(int(number), url, PullReview, etag=etag,
428-
headers=headers)
425+
return self._iter(int(number), url, PullReview, etag=etag)
429426

430427
@requires_auth
431428
def update(self, title=None, body=None, state=None):

0 commit comments

Comments
 (0)
0