Skip to content

Commit ff934af

Browse files
committed
Merge pull request nuxeo#152 from s3aryal/master
PatchWebUnit-Fix
2 parents 1e74d2b + 86b40c7 commit ff934af

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/funkload/PatchWebunit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ def WF_fetch(self, url, postdata=None, server=None, port=None, protocol=None,
386386
# Other Full Request headers
387387
if self.authinfo:
388388
headers.append(('Authorization', "Basic %s"%self.authinfo))
389-
if not webproxy:
389+
390+
#If a value is specified for 'Host' then another value should not be appended
391+
if not webproxy and not 'Host' in self.extra_headers.keys():
390392
# HTTPConnection seems to add a host header itself.
391393
# So we only need to do this if we are not using a proxy.
392394
headers.append(('Host', host_header))

0 commit comments

Comments
 (0)