X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f96550cc40f340c79339338d1da81394bfcb64ad..165ff02bc60935446ffc13e59953b5799ba747c5:/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) }