From 46e147cf1f9dd6080337bc80208f930d217e2264 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 30 Oct 2002 15:39:41 +0000 Subject: [w3m-dev 03359] support for http://user:pass@www.url.com * etc.c (find_auth_user_passwd): use ParsedURL for args use user and passwd if these are defined in ParsedURL * file.c (getAuthCookie): change find_auth_user_passwd() * proto.h (find_auth_user_passwd): change prototype From: Fumitoshi UKAI --- file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index bca214c..bc705fd 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.106 2002/10/30 03:58:59 ukai Exp $ */ +/* $Id: file.c,v 1.107 2002/10/30 15:39:41 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -1390,8 +1390,7 @@ getAuthCookie(struct http_auth *hauth, char *auth_header, auth_header_len); if (!a_found && - find_auth_user_passwd(pu->host, pu->port, pu->file, realm, - &uname, &pwd, proxy)) { + find_auth_user_passwd(pu, realm, &uname, &pwd, proxy)) { /* found username & password in passwd file */ ; } else { -- cgit v1.2.3