Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add real _cookies for jinjia template render #20

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

eromoe
Copy link
Contributor

@eromoe eromoe commented Apr 21, 2016

这里提到的
#19

把session改成dict的cookies,好在jinjia template里使用

@binux binux merged commit e7127d1 into binux:master Apr 21, 2016
@binux
Copy link
Owner

binux commented Apr 23, 2016

session 本来就是一个 CookieSession

@binux
Copy link
Owner

binux commented Apr 23, 2016

不应该这么说,应该说,session 有的时候(第二个请求时)已经是一个 CookieSession 了

@eromoe
Copy link
Contributor Author

eromoe commented Apr 25, 2016

我在Ubuntu 12.04/ windows 上,到第五个请求 还是 [{},{}] 这样的格式。。。

@eromoe
Copy link
Contributor Author

eromoe commented Apr 25, 2016

ubuntu 上没有调试,但是在response 能看到 {{ _cookies.sid }} 没有取到值
windows用pycharm 调试,5个请求session格式全是 [{},{}]
所以才改的=。=

@eromoe
Copy link
Contributor Author

eromoe commented Apr 26, 2016

今天刚好弄了下,发现启用header 里的cookies 的时候没有check 确实会报错,之前没有cookies版的所以没测出来=。=

@binux
Copy link
Owner

binux commented Apr 26, 2016

现在应该好了吧

@eromoe
Copy link
Contributor Author

eromoe commented Apr 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants