From 44fdbe22fc0cda04554035282a4444c6173b974d Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 22 Oct 2003 18:48:09 +0000 Subject: [w3m-dev 04011] accessing to an `https' URI with a fragment via a proxy * url.c (HTTPrequestURI): drop fragment (openURL): don't clear pu->label From: ABE Yuji --- url.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'url.c') diff --git a/url.c b/url.c index c213947..48ece16 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.85 2003/10/20 16:41:56 ukai Exp $ */ +/* $Id: url.c,v 1.86 2003/10/22 18:48:09 ukai Exp $ */ #include "fm.h" #include #include @@ -1340,7 +1340,10 @@ HTTPrequestURI(ParsedURL *pu, HRequest *hr) } } else { + char *save_label = pu->label; + pu->label = NULL; Strcat(tmp, _parsedURL2Str(pu, TRUE)); + pu->label = save_label; } return tmp; } @@ -1627,7 +1630,6 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, #endif /* USE_SSL */ non_null(HTTP_proxy)) && !Do_not_use_proxy && pu->host != NULL && !check_no_proxy(pu->host)) { - char *save_label; hr->flag |= HR_FLAG_PROXY; #ifdef USE_SSL if (pu->scheme == SCM_HTTPS && *status == HTST_CONNECT) { @@ -1659,8 +1661,6 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, #endif return uf; } - save_label = pu->label; - pu->label = NULL; #ifdef USE_SSL if (pu->scheme == SCM_HTTPS) { if (*status == HTST_NORMAL) { @@ -1679,7 +1679,6 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, { tmp = HTTPrequest(pu, current, hr, extra_header); *status = HTST_NORMAL; - pu->label = save_label; } } else { -- cgit v1.2.3