🐛 Fixed writing headers order in media HTTP delivery layer
This commit is contained in:
parent
aeba4bbb8a
commit
dcfc62e081
|
@ -117,8 +117,8 @@ func WriteError(w http.ResponseWriter, description string, status int) {
|
|||
out.Error = "unauthorized"
|
||||
}
|
||||
|
||||
_ = json.NewEncoder(w).Encode(out)
|
||||
|
||||
w.Header().Set(common.HeaderContentType, common.MIMEApplicationJSONCharsetUTF8)
|
||||
w.WriteHeader(status)
|
||||
|
||||
_ = json.NewEncoder(w).Encode(out)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user