Lines 1-20
Link Here
|
1 |
--- src/proxy.c.orig 2015-09-01 18:49:36 UTC |
|
|
2 |
+++ src/proxy.c |
3 |
@@ -119,7 +119,7 @@ char * proxy_stringtable[] = { |
4 |
"<body><h2>503 Service Unavailable</h2><h3>Your request violates configured policy</h3></body></html>\r\n", |
5 |
|
6 |
/* 16*/ "HTTP/1.0 401 Authentication Required\r\n" |
7 |
- "Proxy-Authenticate: basic realm=\"FTP Server\"\r\n" |
8 |
+ "WWW-Authenticate: basic realm=\"FTP Server\"\r\n" |
9 |
"Proxy-Connection: close\r\n" |
10 |
"Content-type: text/html; charset=us-ascii\r\n" |
11 |
"\r\n" |
12 |
@@ -464,7 +464,7 @@ for(;;){ |
13 |
} |
14 |
if(se)*se = '\r'; |
15 |
} |
16 |
- if(ftp && i > 19 && (!strncasecmp((char *)(buf+inbuf), "authorization", 19))){ |
17 |
+ if(ftp && i > 13 && (!strncasecmp((char *)(buf+inbuf), "authorization", 13))){ |
18 |
sb = (unsigned char *)strchr((char *)(buf+inbuf), ':'); |
19 |
if(!sb)continue; |
20 |
++sb; |