Browse Source

Fix cookie setting.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
d6bdd3843c
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      app.fcgi

+ 2
- 4
app.fcgi View File

@@ -43,10 +43,8 @@ def prepare_cookies():

@app.after_request
def add_new_cookies(response):
if g.new_cookies:
if "Set-Cookie" in response.headers:
g.new_cookies.insert(0, response.headers["Set-Cookie"])
response.headers["Set-Cookie"] = "; ".join(g.new_cookies)
for cookie in g.new_cookies:
response.headers.add("Set-Cookie", cookie)
return response

@app.after_request


Loading…
Cancel
Save