diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py index 3860944956..1a98acedf2 100644 --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -351,6 +351,7 @@ def _curl_setup_request( pycurl.HTTPHEADER, [ "%s: %s" % (native_str(k), native_str(v)) + if v is not '' else "%s;" % native_str(k) for k, v in request.headers.get_all() ], )