Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6d29e0

Browse files
committed
Fixing issue with newlines after the data in -r mode
1 parent 965fa04 commit c6d29e0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ def _parseBurpLog(content):
309309
elif key not in (HTTPHEADER.PROXY_CONNECTION, HTTPHEADER.CONNECTION):
310310
conf.httpHeaders.append((getUnicode(key), getUnicode(value)))
311311

312+
data = data.rstrip("\r\n") if data else data
313+
312314
if getPostReq and (params or cookie):
313315
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
314316
port = "443"

0 commit comments

Comments
 (0)