Skip to content

Commit

Permalink
Merge pull request xmendez#167 from PaperTsar/fix_response_decode
Browse files Browse the repository at this point in the history
Fix reading burplog payloads
  • Loading branch information
xmendez authored Nov 16, 2019
2 parents 2478a22 + 58e1f40 commit 5e572ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wfuzz/fuzzobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ def update_from_raw_http(self, raw, scheme, raw_response=None, raw_content=None)

if raw_response:
rp = Response()
raw_response = python2_3_convert_from_unicode(raw_response.decode("utf-8", errors='surrogateescape'))
if not isinstance(raw_response, str):
raw_response = python2_3_convert_from_unicode(raw_response.decode("utf-8", errors='surrogateescape'))
rp.parseResponse(raw_response, raw_content)
self._request.response = rp

Expand Down

0 comments on commit 5e572ac

Please sign in to comment.