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)

This commit is contained in:
Miroslav Stampar 2013-01-19 18:28:37 +01:00
parent bb6b89fe93
commit efe26ac3f8

View File

@ -304,7 +304,7 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
# Avoid to add a static content length header to
# conf.httpHeaders and consider the following lines as
# POSTed data
if key == HTTPHEADER.CONTENT_LENGTH:
if key.upper() == HTTPHEADER.CONTENT_LENGTH.upper():
params = True
# Avoid proxy and connection type related headers