Explorar el Código

Fix FTP over HTTP authentication

Send WWW-Authenticate instead of Proxy-Authenticate
z3APA3A hace 10 años
padre
commit
3198f1614f
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/proxy.c
  2. 1 1
      src/version.h

+ 1 - 1
src/proxy.c

@@ -118,7 +118,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"

+ 1 - 1
src/version.h

@@ -1,2 +1,2 @@
 #define VERSION "3proxy-0.8b-devel"
 #define VERSION "3proxy-0.8b-devel"
-#define BUILDDATE "150831214516"
+#define BUILDDATE "150901150708"