X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dmaap-mediator-producer%2Finternal%2Frestclient%2FHTTPClient_test.go;h=3ded9be21962636c7aa926c6214c194bed81a511;hb=c4960f1dc6688b039d6ee29da03e0c0de47b6fbb;hp=7fe3cc7a81a44b851bd41d0e6b78be9dbb8a94b2;hpb=766e2a9fa843e55bb32f17e59d7d0ccae7cfc22e;p=nonrtric.git diff --git a/dmaap-mediator-producer/internal/restclient/HTTPClient_test.go b/dmaap-mediator-producer/internal/restclient/HTTPClient_test.go index 7fe3cc7a..3ded9be2 100644 --- a/dmaap-mediator-producer/internal/restclient/HTTPClient_test.go +++ b/dmaap-mediator-producer/internal/restclient/HTTPClient_test.go @@ -122,7 +122,7 @@ func TestPutOk(t *testing.T) { assertions.Equal(http.MethodPut, actualRequest.Method) assertions.Equal("http", actualRequest.URL.Scheme) assertions.Equal("localhost:9990", actualRequest.URL.Host) - assertions.Equal("application/json; charset=utf-8", actualRequest.Header.Get("Content-Type")) + assertions.Equal("application/json", actualRequest.Header.Get("Content-Type")) body, _ := ioutil.ReadAll(actualRequest.Body) expectedBody := []byte("body") assertions.Equal(expectedBody, body) @@ -148,7 +148,7 @@ func TestPostOk(t *testing.T) { assertions.Equal(http.MethodPost, actualRequest.Method) assertions.Equal("http", actualRequest.URL.Scheme) assertions.Equal("localhost:9990", actualRequest.URL.Host) - assertions.Equal("application/json; charset=utf-8", actualRequest.Header.Get("Content-Type")) + assertions.Equal("application/json", actualRequest.Header.Get("Content-Type")) body, _ := ioutil.ReadAll(actualRequest.Body) expectedBody := []byte("body") assertions.Equal(expectedBody, body)