fix content-type override
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -261,14 +261,14 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	w.Header().Set("Content-Type", ct) | ||||
|  | ||||
| 	if md, ok := metadata.FromOutgoingContext(ctx); ok { | ||||
| 		for k, v := range md { | ||||
| 			w.Header().Set(k, v) | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	w.Header().Set("content-Type", ct) | ||||
|  | ||||
| 	if nscode := GetRspCode(ctx); nscode != 0 { | ||||
| 		scode = nscode | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user