mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
deduplicate
This commit is contained in:
parent
f13feec8bf
commit
5f2f073a73
2 changed files with 13 additions and 13 deletions
|
@ -42,10 +42,6 @@ func (c *Context) String(raw string, status ...int) {
|
|||
_, _ = c.RespWriter.Write([]byte(raw))
|
||||
}
|
||||
|
||||
func (c *Context) IsMethod(m string) bool {
|
||||
return c.Req.Method == m
|
||||
}
|
||||
|
||||
func (c *Context) Redirect(uri string, statusCode int) {
|
||||
http.Redirect(c.RespWriter, c.Req, uri, statusCode)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue