diff --git a/html/error.go b/html/error.go index 33b24c8..826c42b 100644 --- a/html/error.go +++ b/html/error.go @@ -21,7 +21,7 @@ func ReturnErrorPage(ctx *context.Context, msg string, statusCode int) { msg = strings.ReplaceAll(strings.ReplaceAll(ErrorPage, "%message%", msg), "%status%", http.StatusText(statusCode)) } - ctx.RespWriter.Write([]byte(msg)) + _, _ = ctx.RespWriter.Write([]byte(msg)) } func errorMessage(statusCode int) string { diff --git a/server/context/context.go b/server/context/context.go index 6bb599d..be01df0 100644 --- a/server/context/context.go +++ b/server/context/context.go @@ -39,7 +39,7 @@ func (c *Context) String(raw string, status ...int) { code = status[0] } c.RespWriter.WriteHeader(code) - c.RespWriter.Write([]byte(raw)) + _, _ = c.RespWriter.Write([]byte(raw)) } func (c *Context) IsMethod(m string) bool {