Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(urllib3.py): urrlib3 event collection failed (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
henperez authored May 26, 2021
1 parent 17e7855 commit 667a277
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions epsagon/events/urllib3.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def update_response(self, response):
'response_headers',
headers
)
# Backward compatibility for urllib3<1.26.x
response_body = (
response.peek()
if getattr(response, 'peek', None)
Expand Down

0 comments on commit 667a277

Please sign in to comment.