Re: No 'Content-Type' header in response

2016-12-27 Thread Tim Graham
t;> Thanks, that was an old setting in Mail.app =/ >> >> I've made a pull-request to DRF: >> https://github.com/tomchristie/django-rest-framework/pull/4768 >> But it seems to me that fixing it in Django would be more appropriate. >> >> On the subject of Content-Type header

Re: No 'Content-Type' header in response

2016-12-26 Thread roboslone
om>> wrote: >>> Thanks, that was an old setting in Mail.app =/ >>> >>> I've made a pull-request to DRF: >>> https://github.com/tomchristie/django-rest-framework/pull/4768 >>> <https://github.com/tomchristie/django-rest-framework/pull/4768&g

Re: No 'Content-Type' header in response

2016-12-26 Thread roboslone
; Thanks, that was an old setting in Mail.app =/ >> >> I've made a pull-request to DRF: >> https://github.com/tomchristie/django-rest-framework/pull/4768 >> <https://github.com/tomchristie/django-rest-framework/pull/4768> >> But it seems to me that fixing it in Dj

Re: No 'Content-Type' header in response

2016-12-26 Thread roboslone
etting in Mail.app =/ > > I've made a pull-request to DRF: > https://github.com/tomchristie/django-rest-framework/pull/4768 > <https://github.com/tomchristie/django-rest-framework/pull/4768> > But it seems to me that fixing it in Django would be more appropriate. > &

Re: No 'Content-Type' header in response

2016-12-26 Thread Curtis Maloney
fixing it in Django would be more appropriate. > >On the subject of Content-Type header with no response body, seems >there's no convention about it, I've found different opinions on the >web. The only thing I'm sure about is that putting None in that header >is a bad idea. > >&

Re: No 'Content-Type' header in response

2016-12-26 Thread roboslone
ubject of Content-Type header with no response body, seems there's no convention about it, I've found different opinions on the web. The only thing I'm sure about is that putting None in that header is a bad idea. > On 26 Dec 2016, at 13:24, Adam Johnson <m...@adamj.eu> wrote: > >

Re: No 'Content-Type' header in response

2016-12-26 Thread Adam Johnson
Hi GMail! (you might want to fix your name used on google groups, I had the same problem ;) ) This seems to be a legitimate bug in the __repr__ to me - SO informs me that DRF is correct in not defining a Content-Type for a 204 as it has no body:

No 'Content-Type' header in response

2016-12-25 Thread GMail
Hi! I'm using Django 1.10.2 and Django-Rest-Framework 3.5.3. I noticed, that HttpRequest.__repr__ method relies on 'Content-Type' header: > class HttpResponse(HttpResponseBase): > ... > > def __repr__(self): > return '<%(cls)s status_code=%(status_code)d, "%(content_type)s">' %