From: Florian Forster Date: Sun, 30 Aug 2009 09:11:55 +0000 (+0200) Subject: write_http plugin: Suppress the “Expect:” header. X-Git-Tag: collectd-4.8.0~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bd300297bb2f762cdabc6b38d0d77e7dd96ce130;p=collectd.git write_http plugin: Suppress the “Expect:” header. --- diff --git a/src/write_http.c b/src/write_http.c index ac1e5aad..bf689c56 100644 --- a/src/write_http.c +++ b/src/write_http.c @@ -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);