diff --git a/dothttp/__version__.py b/dothttp/__version__.py index edb5734..1358f97 100644 --- a/dothttp/__version__.py +++ b/dothttp/__version__.py @@ -1 +1 @@ -__version__ = '0.0.40a3' +__version__ = '0.0.40a5' diff --git a/dothttp/request_base.py b/dothttp/request_base.py index 1cc4c2d..25fb91b 100644 --- a/dothttp/request_base.py +++ b/dothttp/request_base.py @@ -192,6 +192,10 @@ def get_curl_output(self): # if isinstance(self.httpdef.headers, AWS4Auth): for k, v in sorted(self.httpdef.headers.items()): parts += [('-H', '{0}: {1}'.format(k, v))] + + if 'cookie' in prep.headers: + parts += [('-H', '{0}: {1}'.format('cookie', prep.headers['cookie'] ))] + url = prep.url if url.startswith(UNIX_SOCKET_SCHEME): diff --git a/test/core/curl-like/curllike.http b/test/core/curl-like/curllike.http index aa9044c..193944e 100644 --- a/test/core/curl-like/curllike.http +++ b/test/core/curl-like/curllike.http @@ -1,5 +1,5 @@ @name('header') -curl -X GET https://google.com +curl -X GET https://unknowndomain.com --header simplekey1 : simplevalue1 --header simplekey2: simplevalue2 --header simple-key3 : simplevalue3