X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/98d6a7c2db7b8be7050fe7394147df5c5ce392bb..40f063c4f6aa35c641650c80751392292e151acb:/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) }