fix argument check and some nits

This commit is contained in:
6543 2021-12-05 23:56:06 +01:00
parent 196482da07
commit aa0638903a
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
2 changed files with 6 additions and 3 deletions

View file

@ -2,8 +2,9 @@ package html
import (
"bytes"
"github.com/valyala/fasthttp"
"strconv"
"github.com/valyala/fasthttp"
)
// ReturnErrorPage sets the response status code and writes NotFoundPage to the response body, with "%status" replaced