diff --git a/src/wfuzz/fuzzobjects.py b/src/wfuzz/fuzzobjects.py index caaf30b7..b3c514d4 100644 --- a/src/wfuzz/fuzzobjects.py +++ b/src/wfuzz/fuzzobjects.py @@ -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