From 18f942b26ca26a019f05cb36a28c009a52921870 Mon Sep 17 00:00:00 2001 From: Neil Rahilly Date: Mon, 28 Mar 2011 11:11:04 -0400 Subject: [PATCH] Fix Expect header bug in curl_httpclient.py. setopt, when used with HTTPHEADER, takes a list, not a string. --- tornado/curl_httpclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py index 326e5499a..d925b1698 100644 --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -297,7 +297,7 @@ def _curl_setup_request(curl, request, buffer, headers): # so just turn off the feature (yes, setting Expect: to an empty # value is the official way to disable this) if "Expect" not in request.headers: - curl.setopt(pycurl.HTTPHEADER, utf8("Expect: ")) + curl.setopt(pycurl.HTTPHEADER, [utf8("Expect: ")]) if request.header_callback: curl.setopt(pycurl.HEADERFUNCTION, request.header_callback) -- 2.47.2