Code

write_http plugin: Suppress the “Expect:” header.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 30 Aug 2009 09:11:55 +0000 (11:11 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 30 Aug 2009 09:11:55 +0000 (11:11 +0200)
src/write_http.c

index ac1e5aad3d7147564ec2392f24e25babce713fd6..bf689c56e72ac5d412014acc7ee1911cc5618c92 100644 (file)
@@ -103,6 +103,7 @@ static int wh_callback_init (wh_callback_t *cb) /* {{{ */
         headers = NULL;
         headers = curl_slist_append (headers, "Accept:  */*");
         headers = curl_slist_append (headers, "Content-Type: text/plain");
+        headers = curl_slist_append (headers, "Expect:");
         curl_easy_setopt (cb->curl, CURLOPT_HTTPHEADER, headers);
 
         curl_easy_setopt (cb->curl, CURLOPT_ERRORBUFFER, cb->curl_errbuf);