mirror of
https://github.com/mirror/wget.git
synced 2025-01-08 19:30:41 +08:00
[svn] Document reasoning behind CLOSE_INVALIDATED more accurately.
This commit is contained in:
parent
79a8def8c8
commit
d7ddbd9720
@ -1892,8 +1892,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
|||||||
xfree_null (type);
|
xfree_null (type);
|
||||||
if (head_only)
|
if (head_only)
|
||||||
/* Pre-1.10 Wget used CLOSE_INVALIDATE here. Now we trust the
|
/* Pre-1.10 Wget used CLOSE_INVALIDATE here. Now we trust the
|
||||||
servers not to send body in response to a HEAD request. If
|
servers not to send body in response to a HEAD request, and
|
||||||
you encounter such a server (more likely a broken CGI), use
|
those that do will likely be caught by test_socket_open.
|
||||||
|
If not, they can be worked around using
|
||||||
`--no-http-keep-alive'. */
|
`--no-http-keep-alive'. */
|
||||||
CLOSE_FINISH (sock);
|
CLOSE_FINISH (sock);
|
||||||
else if (keep_alive && skip_short_body (sock, contlen))
|
else if (keep_alive && skip_short_body (sock, contlen))
|
||||||
|
Loading…
Reference in New Issue
Block a user