GoogleCloudPlatform / webapp2

webapp2 is a framework for Google App Engine
https://webapp2.readthedocs.org
Other
141 stars 63 forks source link

Custom dispatcher example clobbers response attribute settings #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Implement the custom_dispatcher example 
(http://webapp-improved.appspot.com/guide/handlers.html#guide-handlers-returned-
values)
2. In HelloHandler, set a response attribute (e.g. 
self.response.content_type="text/plain")

What is the expected output? What do you see instead?

Any response attributes set in the handler are ignored.

Original issue reported on code.google.com by mattyu...@gmail.com on 10 Mar 2012 at 8:35