Skip to content

Commit

Permalink
Merge pull request quantmind#274 from s-sokolko/feature-no-dump-cookies
Browse files Browse the repository at this point in the history
No dump cookies for security reasons
  • Loading branch information
lsbardel committed Jun 14, 2017
2 parents 62cf272 + 197fb65 commit e4b42d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulsar/apps/wsgi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,16 @@ def query_dict(query_string, encoding='utf-8'):

class dump_environ:
__slots__ = ('environ',)
FILTERED_KEYS = ['HTTP_COOKIE']

def __init__(self, environ):
self.environ = environ

def __str__(self):
def _():
for k, v in self.environ.items():
if k in self.FILTERED_KEYS:
continue
try:
v = str(v)
except Exception as e:
Expand Down

0 comments on commit e4b42d9

Please sign in to comment.