forked from webpy/webpy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed mutliple set-cookie header issue with session. (closes webpy#45)
The Session class was extended from ThreadedDict, which is extended from threading.local. It looks like __init__ is called once for each thread for thread local objects. That made session to add multiple processors to the application, one for each thread/request. Fixed this issue by keeping the threadeddict as an attribute instead of extending from it.
- Loading branch information
1 parent
7d49fd1
commit 23583b4
Showing
1 changed file
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters