Skip to content

Commit

Permalink
Limit the response content size to 8K
Browse files Browse the repository at this point in the history
  • Loading branch information
rm75 committed Apr 26, 2019
1 parent 85f114b commit a36e31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecsclient/common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def from_response(cls, resp, message=None):
http_query=parsed_url.query,
http_status=resp.status_code,
http_reason=resp.reason,
http_response_content=resp.text or resp.content,
http_response_content=resp.text[:8192] or resp.content[:8192],
http_response_headers=resp.headers)

def __str__(self):
Expand Down

0 comments on commit a36e31a

Please sign in to comment.