MSP-1014 add charset=utf-8 for grpc response header

This commit is contained in:
DeniskaRediska committed 2022-09-06 18:21:12 +03:00
1 parent 5a9fc1a59b
commit 191e48d464
1 file changed
+1 -1
+1 -1
View File
@@ -143,7 +143,7 @@ func (p Grpc) writeProto(statusCode int, proto interface{}, w http.ResponseWrite
}
func (p Grpc) writeResponse(statusCode int, data []byte, w http.ResponseWriter) error {
w.Header().Set("Content-Type", "application/json")
w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.WriteHeader(statusCode)
_, err := w.Write(data)
if err != nil {