Explorar o código

Fix FTP over HTTP authentication

Send WWW-Authenticate instead of Proxy-Authenticate

Conflicts:
	src/version.h
z3APA3A %!s(int64=10) %!d(string=hai) anos
pai
achega
de8de757f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/proxy.c

+ 1 - 1
src/proxy.c

@@ -119,7 +119,7 @@ char * proxy_stringtable[] = {
 	"<body><h2>503 Service Unavailable</h2><h3>Your request violates configured policy</h3></body></html>\r\n",
 	"<body><h2>503 Service Unavailable</h2><h3>Your request violates configured policy</h3></body></html>\r\n",
 
 
 /* 16*/	"HTTP/1.0 401 Authentication Required\r\n"
 /* 16*/	"HTTP/1.0 401 Authentication Required\r\n"
-	"Proxy-Authenticate: basic realm=\"FTP Server\"\r\n"
+	"WWW-Authenticate: basic realm=\"FTP Server\"\r\n"
 	"Proxy-Connection: close\r\n"
 	"Proxy-Connection: close\r\n"
 	"Content-type: text/html; charset=us-ascii\r\n"
 	"Content-type: text/html; charset=us-ascii\r\n"
 	"\r\n"
 	"\r\n"