fixed a few small things
[gwvp-mini.git] / gwvpmini / gwvpmini_auth.php
index 342cd71..be5e410 100644 (file)
@@ -95,9 +95,17 @@ function gwvpmini_isLoggedIn()
 }
 
 function gwvpmini_AskForBasicAuth()\r
-{\r
-       header('WWW-Authenticate: Basic realm="GIT Repo"');\r
-       header('HTTP/1.1 401 Unauthorized');\r
+{
+       error_log("SEND BASIC AUTH");
+       header_remove("Pragma");
+       header_remove("Cache-Control");\r
+       header_remove("Set-Cookie");
+       header_remove("Expires");\r
+       header_remove("X-Powered-By");\r
+       header_remove("Vary");\r
+       
+       header('HTTP/1.1 401 Unauthorized');
+       header('WWW-Authenticate: Basic realm="GITRepo"');\r
 }\r