Menu

#80 [PATCH] Overlapping 'Content-Type' is set to pylons.resonse.headers

2.1.1
closed
core
defect
normal
core
2.1.0
2011-04-27
2011-03-29
No
This assignment put two 'Content-Type' on pylons.response.header as a result.

    tg/configuration.py:197

    pylons_config['pylons.response_options']['headers']['Content-Type'] = None

The DecoratedController._render_response corrects this situation with most cases.

However, if pylons.controllers.XMLRPCController is used for instance with TG2, paste.replace_header() generates the exception by response generated from config that TG2 destroyed.

11/19/10 12:54:36 changed by percious

hmm. This is an interesting problem/solution. Probably it will be good to implement for 2.1.1

1 Attachments

Discussion