From afbe346d3ca5179817c1fc7573b15ea89695bab2 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 19 Feb 2002 15:50:17 +0000 Subject: [w3m-dev 03057] Re: Bug#134350: w3m: Forgets (http auth) login information upon reload (or almost anything else) * etc.c (find_auth): add `file' check file as well * etc.c (find_auth_cookie): add `file' * etc.c (add_auth_cookie): add `file' * file.c (AuthBasicCred): add "Basic " * file.c (AuthDigestCred): add "Digest " * file.c (getAuthCookie): if h_auth == NULL, get recorded cookie * file.c (get_auth_cookie): get recorded cookie * file.c (loadGeneralFile): don't clear add_auth_cookie_flag by redirection add_auth_cookie if authorization is required and passed * fm.h (auth_cookie): add file * ftp.c (openFTP): follow change auth_cookie * proto.h (get_auth_cookie): added * proto.h (find_auth_cookie): add `file' * proto.h (add_auth_cookie): add `file' * url.c (openURL): get_auth_cookie From: Fumitoshi UKAI --- url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'url.c') diff --git a/url.c b/url.c index 50db641..9f659db 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.43 2002/02/08 11:25:24 ukai Exp $ */ +/* $Id: url.c,v 1.44 2002/02/19 15:50:18 ukai Exp $ */ #include #include "config.h" #include "fm.h" @@ -1535,6 +1535,7 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current, #ifdef USE_SSL case SCM_HTTPS: #endif /* USE_SSL */ + get_auth_cookie("Authorization:", extra_header, pu, hr, request); if (pu->file == NULL) pu->file = allocStr("/", -1); if (request && request->method == FORM_METHOD_POST && request->body) -- cgit v1.2.3