mirror of
https://github.com/zitadel/oidc.git
synced 2026-04-26 12:38:16 -05:00
fix(op): initialize http Headers in response objects
This commit is contained in:
+6
-2
@@ -218,7 +218,8 @@ type Response struct {
|
||||
// without custom headers.
|
||||
func NewResponse(data any) *Response {
|
||||
return &Response{
|
||||
Data: data,
|
||||
Header: make(http.Header),
|
||||
Data: data,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +243,10 @@ type Redirect struct {
|
||||
}
|
||||
|
||||
func NewRedirect(url string) *Redirect {
|
||||
return &Redirect{URL: url}
|
||||
return &Redirect{
|
||||
Header: make(http.Header),
|
||||
URL: url,
|
||||
}
|
||||
}
|
||||
|
||||
func (red *Redirect) writeOut(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user