Include username in response header (for use by nginx auth_request)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
nemunaire 2021-08-11 18:32:37 +02:00
parent f54f54e538
commit e9019026ff
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ func httpBasicAuth(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusUnauthorized)
w.Write([]byte(err.Error()))
} else {
w.Header().Set("X-Remote-User", user)
w.WriteHeader(http.StatusOK)
for _, e := range entries {
for _, v := range e.Values {