Skip to content

Commit

Permalink
Fixed cache to per request instead of connection
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfthefallen committed Apr 25, 2018
1 parent 01ee1d0 commit 0d6c0c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions king_phisher/server/server.py
Expand Up @@ -176,6 +176,10 @@ def _do_http_method(self, *args, **kwargs):
if self.command == 'RPC':
self.semaphore_acquire()
else:
# delete cached properties so they are handled per request instead of connection.
for cache_prop in ('_campaign_id', '_message_id', '_visit_id'):
if hasattr(self, cache_prop):
delattr(self, cache_prop)
self.adjust_path()

http_method_handler = None
Expand Down

0 comments on commit 0d6c0c1

Please sign in to comment.