mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Couple of minor patches
This commit is contained in:
parent
5bc9e2a631
commit
094cfee30d
3 changed files with 6 additions and 4 deletions
|
|
@ -154,9 +154,9 @@ class Response:
|
|||
stream = io.BytesIO(raw)
|
||||
first_line = stream.readline()
|
||||
parts = cls.extract_status.search(first_line)
|
||||
status_line = b"HTTP/1.0 %s %s" % (parts.group(1), parts.group(2))
|
||||
status_line = "HTTP/1.0 %s %s" % (getText(parts.group(1)), getText(parts.group(2)))
|
||||
remain = stream.read()
|
||||
altered = status_line + b"\r\n" + remain
|
||||
altered = getBytes(status_line) + b"\r\n" + remain
|
||||
comment = first_line
|
||||
|
||||
response = _http_client.HTTPResponse(FakeSocket(altered))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue