aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/core/client.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-06 21:35:33 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-06 21:35:33 +0100
commit91d3f4100083838218447497fad8107aa0970c94 (patch)
treefc8841ac4215047a886f6c499ccb0d188cec8cae /pygithub3/core/client.py
parentRename ghrequest to requests (diff)
downloadpython-github3-91d3f4100083838218447497fad8107aa0970c94.tar.xz
python-github3-91d3f4100083838218447497fad8107aa0970c94.zip
Something confusing about PUT request
It's solved as a provisional patch
Diffstat (limited to 'pygithub3/core/client.py')
-rw-r--r--pygithub3/core/client.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pygithub3/core/client.py b/pygithub3/core/client.py
index bfb8416..866d40a 100644
--- a/pygithub3/core/client.py
+++ b/pygithub3/core/client.py
@@ -95,12 +95,9 @@ class Client(object):
return response
def put(self, request, **kwargs):
- # TODO: Search info about this (bug in requests? in api? me?)
- incoming_headers = kwargs.get('headers', {})
- incoming_headers.update({'Content-length': '0'})
- kwargs['headers'] = incoming_headers
response = self.request('put', request, **kwargs)
- assert response.status_code != '204'
+ # assert response.status_code != '204'
+ # I don't do an assert. See `services.base.Base._put` comment
return response
def delete(self, request, **kwargs):