Do not add again ctx.headers, since it is already "imported" during the creation of Current request

(see HTTP_CLIENT_REQUEST.make)
This commit is contained in:
Jocelyn Fiat
2012-01-20 15:37:04 +01:00
parent abdd68863d
commit da9fa4ecc2

View File

@@ -169,19 +169,9 @@ feature -- Execution
p := curl.slist_append (p, curs.key + ": " + curs.item) p := curl.slist_append (p, curs.key + ": " + curs.item)
end end
end end
if ctx /= Void then
if attached ctx.headers as l_headers_2 then
across
l_headers_2 as curs_2
loop
p := curl.slist_append (p, curs_2.key + ": " + curs_2.item)
end
end
end
p := curl.slist_append (p, "Expect:") p := curl.slist_append (p, "Expect:")
curl_easy.setopt_slist (curl_handle, {CURL_OPT_CONSTANTS}.curlopt_httpheader, p) curl_easy.setopt_slist (curl_handle, {CURL_OPT_CONSTANTS}.curlopt_httpheader, p)
curl.global_cleanup curl.global_cleanup
curl_easy.set_read_function (curl_handle) curl_easy.set_read_function (curl_handle)