Re: [pylons-devel] Probelms with wairtress in Python 2.7.7
Am 04.06.2014 12:58, schrieb Tjelvar: Yesterday we encountered a problem with Waitress when using the newly released Python 2.7.7 (on windows). I can confirm this issue on Python 2.7.7. It is obviously caused by the patch for http://bugs.python.org/issue15207 after which some mime types are returned as unicode instead of str under Windows. -- Christoph -- You received this message because you are subscribed to the Google Groups pylons-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to pylons-devel@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/d/optout.
Re: [pylons-devel] Probelms with wairtress in Python 2.7.7
https://github.com/Pylons/webob/pull/150 Is an outstanding pull request to fix this in from_file() in WebOb, would this solve the problem? Bert On Jun 5, 2014, at 08:26 , Chris McDonough chr...@plope.com wrote: On 06/05/2014 05:39 AM, Christoph Zwerschke wrote: Am 04.06.2014 12:58, schrieb Tjelvar: Yesterday we encountered a problem with Waitress when using the newly released Python 2.7.7 (on windows). I can confirm this issue on Python 2.7.7. It is obviously caused by the patch for http://bugs.python.org/issue15207 after which some mime types are returned as unicode instead of str under Windows. FWIW, this bug is not in Waitress, but in whatever is setting the content-type, probably WebOb. WSGI specifies that header keys and values must be of the native str type, and Waitress is just enforcing that. It'd be useful if someone could walk through the code that is setting this header and propose a patch that fixes this under 2.7.7. - C -- You received this message because you are subscribed to the Google Groups pylons-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to pylons-devel@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/d/optout. smime.p7s Description: S/MIME cryptographic signature
Re: [pylons-devel] Probelms with wairtress in Python 2.7.7
On 06/05/2014 11:49 AM, Bert JW Regeer wrote: https://github.com/Pylons/webob/pull/150 Is an outstanding pull request to fix this in from_file() in WebOb, would this solve the problem? Probably not. More like here: https://github.com/Pylons/pyramid/blob/master/pyramid/response.py#L55 Bert On Jun 5, 2014, at 08:26 , Chris McDonough chr...@plope.com wrote: On 06/05/2014 05:39 AM, Christoph Zwerschke wrote: Am 04.06.2014 12:58, schrieb Tjelvar: Yesterday we encountered a problem with Waitress when using the newly released Python 2.7.7 (on windows). I can confirm this issue on Python 2.7.7. It is obviously caused by the patch for http://bugs.python.org/issue15207 after which some mime types are returned as unicode instead of str under Windows. FWIW, this bug is not in Waitress, but in whatever is setting the content-type, probably WebOb. WSGI specifies that header keys and values must be of the native str type, and Waitress is just enforcing that. It'd be useful if someone could walk through the code that is setting this header and propose a patch that fixes this under 2.7.7. - C -- You received this message because you are subscribed to the Google Groups pylons-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to pylons-devel@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups pylons-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to pylons-devel@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/d/optout.
Re: [pylons-devel] Probelms with wairtress in Python 2.7.7
On Thu, Jun 5, 2014 at 11:40 AM, Chris McDonough chr...@plope.com wrote: On 06/05/2014 11:49 AM, Bert JW Regeer wrote: https://github.com/Pylons/webob/pull/150 Is an outstanding pull request to fix this in from_file() in WebOb, would this solve the problem? Probably not. More like here: https://github.com/Pylons/pyramid/blob/master/pyramid/response.py#L55 It may not be bad to just sanitize all headers in start_response or in _abs_headerlist: https://github.com/Pylons/webob/blob/master/webob/response.py#L1027 -- You received this message because you are subscribed to the Google Groups pylons-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to pylons-devel@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/d/optout.