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

Skip to content

Commit efe26ac

Browse files
committed
In case that content-length header was not in a desired case ('Content-length') POST request file would fail badly (repeating original content-length header value)
1 parent bb6b89f commit efe26ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def _parseBurpLog(content):
304304
# Avoid to add a static content length header to
305305
# conf.httpHeaders and consider the following lines as
306306
# POSTed data
307-
if key == HTTPHEADER.CONTENT_LENGTH:
307+
if key.upper() == HTTPHEADER.CONTENT_LENGTH.upper():
308308
params = True
309309

310310
# Avoid proxy and connection type related headers

0 commit comments

Comments
 (0)