X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9f45d7dd8adfac9a2f690de6a0831498cff5512f..7846843453df9846c346f85c20a8d6d051066f52:/services/arv-git-httpd/auth_handler.go diff --git a/services/arv-git-httpd/auth_handler.go b/services/arv-git-httpd/auth_handler.go index 39a9098c52..fccb0c9576 100644 --- a/services/arv-git-httpd/auth_handler.go +++ b/services/arv-git-httpd/auth_handler.go @@ -3,7 +3,6 @@ package main import ( "log" "net/http" - "net/http/cgi" "os" "strings" "time" @@ -16,7 +15,7 @@ import ( var clientPool = arvadosclient.MakeClientPool() type authHandler struct { - handler *cgi.Handler + handler http.Handler } func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) { @@ -150,7 +149,5 @@ func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) { } r.URL.Path = rewrittenPath - handlerCopy := *h.handler - handlerCopy.Env = append(handlerCopy.Env, "REMOTE_USER="+r.RemoteAddr) // Should be username - handlerCopy.ServeHTTP(&w, r) + h.handler.ServeHTTP(&w, r) }