Finished job creation
[nonrtric.git] / dmaap-mediator-producer / internal / restclient / HTTPClient.go
index c6eb24c..78a02b6 100644 (file)
@@ -94,6 +94,7 @@ func isResponseSuccess(statusCode int) bool {
 }
 
 func getRequestError(response *http.Response) RequestError {
+       defer response.Body.Close()
        responseData, _ := io.ReadAll(response.Body)
        putError := RequestError{
                StatusCode: response.StatusCode,