X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a7a482db3954fa6470be74f0e00f6e1e105e0b6c..31c66b5b49d05d9a0019bea85112cea6daeb7f1a:/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 fa03756301..13706ae3e8 100644 --- a/services/arv-git-httpd/auth_handler.go +++ b/services/arv-git-httpd/auth_handler.go @@ -48,7 +48,7 @@ func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) { var statusText string var apiToken string var repoName string - var validApiToken bool + var validAPIToken bool w := httpserver.WrapResponseWriter(wOrig) @@ -88,7 +88,7 @@ func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) { // If the given password is a valid token, log the first 10 characters of the token. // Otherwise: log the string if a password is given, else an empty string. passwordToLog := "" - if !validApiToken { + if !validAPIToken { if len(apiToken) > 0 { passwordToLog = "" } @@ -133,7 +133,7 @@ func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) { statusCode, statusText = http.StatusInternalServerError, err.Error() return } - validApiToken = true + validAPIToken = true if repoUUID == "" { statusCode, statusText = http.StatusNotFound, "not found" return