-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Description
Lines 562 to 567 in 5804f03
// Retrieve the http.ResponseWriter from the context | |
if rw, ok := r.Context().Value(0).(http.ResponseWriter); ok { | |
http.Redirect(rw, r, redirect.RedirectTo, redirect.HTTPStatusCode) | |
} else { | |
log.Error("Failed to retrieve the http.ResponseWriter from the context") | |
} |
In this redirection code the ResponseWriter is always null and falls into 'else'.
The redirection doesn't work and return a blank page.
Metadata
Metadata
Assignees
Labels
No labels