This commit is contained in:
Jan-Lukas Else 2021-02-27 09:06:30 +01:00
parent 6de2ae6ff3
commit 029d4555b2
1 changed files with 0 additions and 1 deletions

View File

@ -42,7 +42,6 @@ func authMiddleware(next http.Handler) http.Handler {
return
}
// 3. Show login form
w.WriteHeader(http.StatusOK)
w.Header().Set("Cache-Control", "no-cache,no-store,must-revalidate")
h, _ := json.Marshal(r.Header.Clone())
b, _ := io.ReadAll(io.LimitReader(r.Body, 2000000)) // Only allow 20 Megabyte