mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
fix lint issues and tests
This commit is contained in:
parent
dc023b81a8
commit
ea13ac0e92
7 changed files with 27 additions and 33 deletions
|
@ -42,7 +42,7 @@ func (c *Context) String(raw string, status ...int) {
|
|||
code = status[0]
|
||||
}
|
||||
c.RespWriter.WriteHeader(code)
|
||||
io.Copy(c.RespWriter, strings.NewReader(raw))
|
||||
_, _ = io.Copy(c.RespWriter, strings.NewReader(raw))
|
||||
}
|
||||
|
||||
func (c *Context) IsMethod(m string) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue