In my golang server i am writing response like this
w.WriteHeader(http.StatusOK)
w.Header().Set(“content-Type”, “application/json”)
fmt.Println(w.Header().Get(“content-Type”))
w.Write(response)
fmt.Println(w.Header().Get(“content-Type”))
but when i receive response on client its content type is text/plain
what is happening ?