mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Make "Proxy-Connection: close" close the current proxy connection, as
Roman Koifman found out.
This commit is contained in:
parent
24353c4372
commit
05825a8a9f
@ -735,6 +735,17 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
||||
conn->bits.close = FALSE; /* don't close when done */
|
||||
infof(data, "HTTP/1.0 proxy connection set to keep alive!\n");
|
||||
}
|
||||
else if((k->httpversion == 11) &&
|
||||
conn->bits.httpproxy &&
|
||||
Curl_compareheader(k->p,
|
||||
"Proxy-Connection:", "close")) {
|
||||
/*
|
||||
* We get a HTTP/1.1 response from a proxy and it says it'll
|
||||
* close down after this transfer.
|
||||
*/
|
||||
conn->bits.close = TRUE; /* close when done */
|
||||
infof(data, "HTTP/1.1 proxy connection set close!\n");
|
||||
}
|
||||
else if((k->httpversion == 10) &&
|
||||
Curl_compareheader(k->p, "Connection:", "keep-alive")) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user