mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Make sure cookie code works with the real URL data, not the proxy one.
Published in <sxsg0e8z3bp.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
dc823e0604
commit
36eba40905
@ -1,3 +1,8 @@
|
||||
2001-05-14 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* http.c (gethttp): Use real URL data for cookies, not the cookie
|
||||
stuff.
|
||||
|
||||
2001-05-12 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* main.c (print_help): Document `--no-http-keep-alive'.
|
||||
|
@ -596,10 +596,6 @@ gethttp (struct urlinfo *u, struct http_stat *hs, int *dt)
|
||||
keep_alive = 0;
|
||||
http_keep_alive_1 = http_keep_alive_2 = 0;
|
||||
|
||||
if (opt.cookies)
|
||||
cookies = build_cookies_request (u->host, u->port, u->path,
|
||||
u->proto == URLHTTPS);
|
||||
|
||||
/* Initialize certain elements of struct http_stat. */
|
||||
hs->len = 0L;
|
||||
hs->contlen = -1;
|
||||
@ -807,6 +803,10 @@ gethttp (struct urlinfo *u, struct http_stat *hs, int *dt)
|
||||
else
|
||||
request_keep_alive = NULL;
|
||||
|
||||
if (opt.cookies)
|
||||
cookies = build_cookies_request (ou->host, ou->port, ou->path,
|
||||
ou->proto == URLHTTPS);
|
||||
|
||||
/* Allocate the memory for the request. */
|
||||
request = (char *)alloca (strlen (command) + strlen (path)
|
||||
+ strlen (useragent)
|
||||
|
Loading…
Reference in New Issue
Block a user