Skip to content

Commit

Permalink
Fix issue when the body is None
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Jun 11, 2019
1 parent cab9958 commit 1b23c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion w3af/core/data/parsers/utils/response_uniq_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_response_unique_id(http_response, prepend=None):
# body before hashing
uri_str = http_response.get_uri().url_string.encode('utf-8')

body_str = http_response.body
body_str = http_response.body or ''
if isinstance(body_str, unicode):
body_str = body_str.encode('utf-8', 'replace')

Expand Down

0 comments on commit 1b23c05

Please sign in to comment.