From efe26ac3f886e27014d959a73dd11455990d4a51 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 19 Jan 2013 18:28:37 +0100 Subject: [PATCH] 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) --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index b9bd3f620..fced6ed67 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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