properly detect content-type
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user