Remove incorrect CONTENT_TYPE header from GET and HEAD requests #1270

Merged
merged 1 commit into from Jun 14, 2013

Projects

None yet

2 participants

@tomchristie
Member

No description provided.

@mjtamlyn
Member

Can you please give us a reference to a document which says this is wrong? I understand that it isn't necessary, but I can't obviously find anything which says it's "incorrect".

@mjtamlyn
Member

In fact, this seems to imply that it is not an error. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17

@tomchristie
Member

The section you're referencing is talking about using the Content-Type as it applies to the response of a GET or HEAD request.

@tomchristie
Member

Can you please give us a reference to a document which says this is wrong?

RFC2616, as you referenced notes, 'the media type of the entity-body'. There is no entity-body, and the usage of content-type there is incorrect.

@mjtamlyn
Member

Yup, I've done some more research and it looks ok to me.

@mjtamlyn mjtamlyn merged commit 0f3f88e into django:master Jun 14, 2013
@tomchristie tomchristie deleted the unknown repository branch Jun 14, 2013
@tomchristie
Member

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment