Skip to content

Commit

Permalink
Merge pull request #24 from Moesif/update-dependencies
Browse files Browse the repository at this point in the history
Update: moesifpythonrequest library dependency to 0.1.8
  • Loading branch information
matthewoates authored Jun 10, 2019
2 parents c524ce7 + baa7695 commit 5b8b600
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions moesifdjango/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ def mapper(key):
except:
if self.DEBUG:
print("could not json parse, so base64 encode")
rsp_body = base64.standard_b64encode(response.content)
rsp_body = base64.standard_b64encode(response.content).decode()
rsp_body_transfer_encoding = 'base64'
if self.DEBUG:
print("base64 encoded body: " + rsp_body)
print("base64 encoded body: " + str(rsp_body))

rsp_time = timezone.now()

Expand Down
4 changes: 2 additions & 2 deletions moesifdjango/middleware_pre19.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ def mapper(key):
except:
if self.DEBUG:
print("could not json parse, so base64 encode")
rsp_body = base64.standard_b64encode(response.content)
rsp_body = base64.standard_b64encode(response.content).decode()
rsp_body_transfer_encoding = 'base64'
if self.DEBUG:
print("base64 encoded body: " + rsp_body)
print("base64 encoded body: " + str(rsp_body))


rsp_time = timezone.now()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ nose==1.3.7
isodatetimehandler==1.0.2
moesifapi==1.2.5
celery==4.1.0
moesifpythonrequest==0.1.7
moesifpythonrequest==0.1.8
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.5.4',
version='1.5.5',

description='Moesif Middleware for Python Django',
long_description=long_description,
Expand Down

0 comments on commit 5b8b600

Please sign in to comment.