properly detect content-type
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
c8587ec93a
commit
0d442683ee
@ -78,7 +78,7 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
ct := DefaultContentType
|
ct := DefaultContentType
|
||||||
if htype := r.Header.Get("Content-Type"); htype != "" {
|
if htype := r.Header.Get("Content-Type"); htype != "" {
|
||||||
ct = htype
|
ct = strings.Split(htype, ";")[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
var cf codec.Codec
|
var cf codec.Codec
|
||||||
|
Loading…
Reference in New Issue
Block a user