fix: add content type header to byteHandler

This commit is contained in:
Derrick Hammer 2024-02-07 20:19:46 -05:00
parent 172b040365
commit 8e04de591e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ func (s S5API) Stop(ctx context.Context) error {
func byteHandler(b []byte) jape.Handler { func byteHandler(b []byte) jape.Handler {
return func(c jape.Context) { return func(c jape.Context) {
c.ResponseWriter.Header().Set("Content-Type", "application/json")
c.ResponseWriter.Write(b) c.ResponseWriter.Write(b)
} }
} }