This commit is contained in:
Miroslav Stampar
2016-05-17 10:47:17 +02:00
parent 03be9f9b65
commit 72f3185ae7
3 changed files with 353 additions and 177 deletions

View File

@@ -373,6 +373,9 @@ class Connect(object):
if boundary:
headers[HTTP_HEADER.CONTENT_TYPE] = "%s; boundary=%s" % (headers[HTTP_HEADER.CONTENT_TYPE], boundary)
if conf.keepAlive:
headers[HTTP_HEADER.CONNECTION] = "keep-alive"
# Reset header values to original in case of provided request file
if target and conf.requestFile:
headers = OrderedDict(conf.httpHeaders)