mirror of https://github.com/jlelse/GoBlog
Fix
This commit is contained in:
parent
6de2ae6ff3
commit
029d4555b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue