From 95fbf7500cc2c536d0a56874d6816da8c54fae0e Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Thu, 13 Jan 2022 07:29:32 +0200 Subject: [PATCH] fix(azure): parse validation error [EE-2334] (#6341) fixes [EE-2334] --- api/http/proxy/factory/azure/containergroup.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/http/proxy/factory/azure/containergroup.go b/api/http/proxy/factory/azure/containergroup.go index 99c7b2a88..44672a50b 100644 --- a/api/http/proxy/factory/azure/containergroup.go +++ b/api/http/proxy/factory/azure/containergroup.go @@ -45,7 +45,11 @@ func (transport *Transport) proxyContainerGroupPutRequest(request *http.Request) } if validationResponse.StatusCode >= 200 && validationResponse.StatusCode < 300 { - resp := &http.Response{} + resp := &http.Response{ + Header: http.Header{ + http.CanonicalHeaderKey("content-type"): []string{"application/json"}, + }, + } errObj := map[string]string{ "message": "A container instance with the same name already exists inside the selected resource group", }