浏览代码

Fix cookie setting.

pull/24/head
Ben Kurtovic 10 年前
父节点
当前提交
d6bdd3843c
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      app.fcgi

+ 2
- 4
app.fcgi 查看文件

@@ -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


正在加载...
取消
保存