[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:
hniksic 2001-05-14 02:32:11 -07:00
parent dc823e0604
commit 36eba40905
2 changed files with 9 additions and 4 deletions

View File

@ -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'.

View File

@ -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)