fix: add content type header to byteHandler
This commit is contained in:
parent
172b040365
commit
8e04de591e
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue