On Wed, Jan 21, 2009 at 7:38 AM, Chris Miles <[email protected]> wrote:
> Either Pylons or Webtest are at fault with their understanding of
> whether a Content-Type header is allowed with a 204 response.

As far as I know the content-type without any body has no meaning. In
the controller methods I have with 204 as response
header I just do:

del response.headers['content-type']

I display the same odd behavior with pylons 0.9.6.2 and paste's test modules

> In webtest it is lint.py:check_content_type() that enforces a 204
> response to contain no Content-Type header.  While I agree a Content-
> Type is unnecessary for a response containing no body, I can't see
> anywhere in rfc2616 that dictates including a Content-Type header is
> invalid.

Exactly, it uses "MAY", which means... may :-)

> Anyone care to make a call one way or the other?  Otherwise I'll
> submit a Webtest ticket/patch.

I think it should not break, but that's my opinion


-- 
Lawrence, http://oluyede.org - http://twitter.com/lawrenceoluyede
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to