durusmail: quixote-users: Patch[1] for http_response.py for quixote-2.1
Patch[1] for http_response.py for quixote-2.1
2005-08-21
2005-08-21
2005-08-29
2005-08-29
Re: Patch[1] for http_response.py for quixote-2.1
2005-08-29
2005-08-29
2005-09-01
behavior of set_content_type()
Re: behavior of set_content_type()
2005-08-30
2005-08-30
2005-08-30
Patch[1] for http_response.py for quixote-2.1
Damjan
2005-08-21
> > This patch for Quixote-2.1/http_response.py makes the
> > HTTPResponse.set_content_type method more similar to
> > HTTPResponse.__init__,  in that it no longer assumes that iso-8859-1 is the
> > default charset.
>
> According to the HTTP specification, iso-8859-1 is the default
> charset if the 'charset' parameter of the Context-Type header is not
> provided.  That is why set_content_type works the way it does.

How does that matter if the user (quixote developer) changes
HTTPResponse.DEFAULT_CHARSET to something else (expecting that change to
be reflected everywhere)?

iso-8859-1 will still be used if that's what HTTPResponse.DEFAULT_CHARSET
is set to (which it does by default)!

Also you can see the HTTPResponse.__init__ method just above this
HTTPResponse.set_content_type method that it's does the same thing this
patch does.




--
damjan | дамјан
This is my jabber ID --> damjan@bagra.net.mk <-- not my mail address!!!
reply