summaryrefslogtreecommitdiff
path: root/pygerrit/rest.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygerrit/rest.py')
-rw-r--r--pygerrit/rest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pygerrit/rest.py b/pygerrit/rest.py
index cccfa94..9b96178 100644
--- a/pygerrit/rest.py
+++ b/pygerrit/rest.py
@@ -68,8 +68,11 @@ class GerritRestAPI(object):
configured to not attempt to verify SSL certificates.
"""
+ headers = {'Accept': 'application/json',
+ 'Accept-Encoding': 'gzip'}
self.kwargs = {'auth': auth,
- 'verify': verify}
+ 'verify': verify,
+ 'headers': headers}
self.url = url.rstrip('/')
self.session = requests.session()