Re: Re: Patch[1] for http_response.py for quixote-2.1

Damjan <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
> Please review the attached patch.  It changes the default charset
> for set_content_type() to None.  If HTTPResponse.charset is None
> then the charset parameter of the Content-Type header will not be
> specified.  If you think it is less surprising, we can make the
> 'charset' argument to set_content_type() a required parameter.

What patch are you talking about? 
My patch would set the charset to http_response.DEFAULT_CHARSET 
if it's not specified in the set_content_type call.
see this line:
	self.charset = charset or self.DEFAULT_CHARSET
maybe I should've expaneded it:

	if charset:
		self.charset = charset
	else:
		self.charset = self.DEFAULT_CHARSET

What's wrong with that? self.charset will never be 'None' unless you
also set http_response.DEFAULT_CHARSET to None.

-- 
damjan | дамјан
This is my jabber ID --> [email protected] <-- not my mail address!!!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.