Skip to content

Commit

Permalink
Always detach token from request.META
Browse files Browse the repository at this point in the history
  • Loading branch information
adamantike committed Sep 28, 2021
1 parent 4aa3f78 commit 44cd1dc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,7 @@ def process_response(self, request, response):
activation.__exit__(None, None, None)

if self._environ_token in request.META.keys():
if is_asgi_request:
detach(request.META.get(self._environ_token))
else:
detach(request.environ.get(self._environ_token))
detach(request.META.get(self._environ_token))
request.META.pop(self._environ_token)

return response

0 comments on commit 44cd1dc

Please sign in to comment.