mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 14:26:58 +00:00
first working
This commit is contained in:
parent
8a5a3cee5d
commit
dc023b81a8
2 changed files with 8 additions and 4 deletions
|
@ -28,6 +28,9 @@ func (c *Context) Context() stdContext.Context {
|
|||
|
||||
func (c *Context) Response() *http.Response {
|
||||
if c.Req != nil {
|
||||
if c.Req.Response == nil {
|
||||
c.Req.Response = &http.Response{Header: make(http.Header)}
|
||||
}
|
||||
return c.Req.Response
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue