fixed a few small things
[gwvp-mini.git] / gwvpmini / gwvpmini_auth.php
index bc80d8f..be5e410 100644 (file)
@@ -96,7 +96,14 @@ function gwvpmini_isLoggedIn()
 
 function gwvpmini_AskForBasicAuth()\r
 {
-       error_log("SEND BASIC AUTH");\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