diff --git a/github2/request.py b/github2/request.py index 6d0a1d8..7a6581c 100644 --- a/github2/request.py +++ b/github2/request.py @@ -131,7 +131,6 @@ def raw_request(self, url, extra_post_data, method="GET"): scheme, netloc, path, query, fragment = urlsplit(url) post_data = None headers = self.http_headers - headers["Accept"] = "text/html" method = method.upper() if extra_post_data or method == "POST": post_data = self.encode_authentication_data(extra_post_data) @@ -154,5 +153,7 @@ def raw_request(self, url, extra_post_data, method="GET"): @property def http_headers(self): - return {"User-Agent": "pygithub2 v1", - "Accept-Encoding": "application/json"} + return { + "User-Agent": "pygithub2 v1", + "Accept": "application/json", + }