r8-forks / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

AttributeError: HeaderDict instance has no attribute 'add_header' #6

Closed GoogleCodeExporter closed 9 years ago

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

rh.response.headers.add_header('Set-Cookie','%s=%s; path=/;'%(name,self._sid))

(ref: 
http://stackoverflow.com/questions/5118639/getting-error-while-trying-to-add-hea
der-with-set-cookie-in-gae)

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

I understood that webapp2 is a drop-in replacement with App Engine webapp.  So 
I expected existing code to work.

What version of the product are you using? On what operating system?

webapp2.py 1.7.1
App Engine SDK 1.5.0.

Original issue reported on code.google.com by mkb...@gmail.com on 18 Jun 2011 at 7:02

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 255f6d174b4a.

Original comment by rodrigo.moraes on 20 Jun 2011 at 7:10

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. Yes, webapp2 is intended to be as compatible as 
possible with webapp. Some edge cases will inevitably be uncovered. And it was 
not hard to support this case: I added the methods getall() and add_header() to 
webob.Response.headers, following wsgiref.headers.Headers.

A new release will include this fix.

If you find any other incompatibility, please let me know!

Original comment by rodrigo.moraes on 20 Jun 2011 at 7:14