From 91d3f4100083838218447497fad8107aa0970c94 Mon Sep 17 00:00:00 2001 From: David Medina Date: Mon, 6 Feb 2012 21:35:33 +0100 Subject: Something confusing about PUT request It's solved as a provisional patch --- pygithub3/core/client.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'pygithub3/core') 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): -- cgit v1.2.3-59-g8ed1b