File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- 0.2.7
1+ 0.2.8
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def from_http_request(request):
4848 client_token = None
4949
5050 try :
51- headers = request .headers
51+ headers = dict ( request .headers )
5252 except Exception :
5353 headers = None
5454
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ class RequestUtils(object):
44
55 @staticmethod
66 def get_secure_header_from_request (headers ):
7- if headers :
7+ try :
88 return headers [RequestUtils .SECURENATIVE_HEADER ]
9- return []
9+ except Exception :
10+ return ""
1011
1112 @staticmethod
1213 def get_client_ip_from_request (request ):
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ class VersionUtils(object):
22
33 @staticmethod
44 def get_version ():
5- return "0.2.7 "
5+ return "0.2.8 "
You can’t perform that action at this time.
0 commit comments