google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

Error Setting Multiple Cookies #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. This is the code. Simply setting two cookies:

class HomePage(webapp2.RequestHandler):
  def get(self):
    self.response.headers.add_header('Set-Cookie', "name1=value1")
    self.response.headers.add_header('Set-Cookie', "name2=value2")

2. This is the resulting header sent to the browser using devappserver2.py:
set-cookie:name1=value1, name2=value2

3. And these are the headers sent to the browser using dev_appserver.py:
Set-Cookie:name1=value1
Set-Cookie:name2=value2

As you see, dev_appserver.py sends two separate headers (correct). And the new 
devappserver2.py merges the headers into one, and the browser cannot read them 
correctly.

Original issue reported on code.google.com by wal...@ninua.com on 3 Mar 2013 at 2:47

GoogleCodeExporter commented 9 years ago
Are you sure that you are using version 0.7? Because we fixed this issue for 
0.6, I believe.

Original comment by bquin...@google.com on 5 Mar 2013 at 12:31

GoogleCodeExporter commented 9 years ago
How do I check which version I'm on? I looked in the output of devappserver2.py 
when it runs, and I also searched in the source code, but I couldn't find it. I 
know it's the latest production version because it checks for updates and 
reports that it's up to date. 

I'll try the latest version from the repository and let you know.

Original comment by wal...@ninua.com on 5 Mar 2013 at 1:47

GoogleCodeExporter commented 9 years ago
Thanks for the tip. I pulled the latest version from the repository and now 
it's working okay. This bug can be closed.

Original comment by wal...@ninua.com on 5 Mar 2013 at 11:40

GoogleCodeExporter commented 9 years ago

Original comment by sa...@google.com on 11 Mar 2013 at 1:25