fixed a few small things
authorPaul J R <me@pjr.cc>
Tue, 18 Sep 2012 22:19:44 +0000 (08:19 +1000)
committerPaul J R <me@pjr.cc>
Tue, 18 Sep 2012 22:19:44 +0000 (08:19 +1000)
gwvpmini/gwvpmini_auth.php
gwvpmini/gwvpmini_gitbackend.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
index 19f695f..69c828f 100644 (file)
@@ -94,7 +94,7 @@ function gwvpmini_gitBackendInterface()
        
        $perms = 5;
        
-       $write = true;
+       //$write = true;
        
        // if its a write, we push for authentication
        if($write) {