summaryrefslogtreecommitdiff
path: root/internal/middlewares/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/middlewares/util.go')
-rw-r--r--internal/middlewares/util.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/middlewares/util.go b/internal/middlewares/util.go
index 23f58f01a..03b80f557 100644
--- a/internal/middlewares/util.go
+++ b/internal/middlewares/util.go
@@ -4,12 +4,12 @@ import (
"github.com/valyala/fasthttp"
)
-// SetContentTypeApplicationJSON sets the Content-Type header to `application/json; charset=utf8`.
+// SetContentTypeApplicationJSON sets the Content-Type header to `application/json; charset=utf-8`.
func SetContentTypeApplicationJSON(ctx *fasthttp.RequestCtx) {
ctx.SetContentTypeBytes(contentTypeApplicationJSON)
}
-// SetContentTypeTextPlain sets the Content-Type header to `text/plain; charset=utf8`.
+// SetContentTypeTextPlain sets the Content-Type header to `text/plain; charset=utf-8`.
func SetContentTypeTextPlain(ctx *fasthttp.RequestCtx) {
ctx.SetContentTypeBytes(contentTypeTextPlain)
}