aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-02-28 16:15:41 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-02-28 16:15:41 +0000
commit84854e6db6f4de547797fad6bce03526881d07cc (patch)
tree9c7b9afb164e88ff76564c942948c8480ce7eb88 /main.c
parent[w3m-dev 03070] Re: https through proxy (diff)
downloadw3m-84854e6db6f4de547797fad6bce03526881d07cc.tar.gz
w3m-84854e6db6f4de547797fad6bce03526881d07cc.zip
[w3m-dev 03072] Proxy-Authorization (Re: Re: https through proxy)
* file.c (loadGeneralFile) delete Proxy-Authorization set here * fm.h (HR_FLAG_PROXY): added * main.c (MAIN): need "Basic " for proxy_auth_cookie * url.c (HTTPrequest): add seen_proxy_auth if proxy and no Proxy-Authorization: header seen and has proxy_auth_cookie, use it * url.c (openURL): hr->flag |= HR_FLAG_PROXY * file.c (loadGeneralFile) comment indent fix * html.c (TagMAP): ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index 9c422ba..1386362 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.84 2002/02/19 15:25:19 ukai Exp $ */
+/* $Id: main.c,v 1.85 2002/02/28 16:15:41 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -643,7 +643,9 @@ MAIN(int argc, char **argv, char **envp)
else if (!strcmp("-pauth", argv[i])) {
if (++i >= argc)
usage();
- proxy_auth_cookie = encodeB(argv[i]);
+ proxy_auth_cookie = Strnew_m_charp("Basic ",
+ encodeB(argv[i])->ptr,
+ NULL);
while (argv[i][0]) {
argv[i][0] = '\0';
argv[i]++;