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:
@@ -169,19 +169,9 @@ feature -- Execution
|
||||
p := curl.slist_append (p, curs.key + ": " + curs.item)
|
||||
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:")
|
||||
curl_easy.setopt_slist (curl_handle, {CURL_OPT_CONSTANTS}.curlopt_httpheader, p)
|
||||
|
||||
|
||||
curl.global_cleanup
|
||||
|
||||
curl_easy.set_read_function (curl_handle)
|
||||
|
||||
Reference in New Issue
Block a user