diff --git a/src/food-market.infrastructure/Integrations/MoySklad/MoySkladClient.cs b/src/food-market.infrastructure/Integrations/MoySklad/MoySkladClient.cs index a4ece45..3c1c394 100644 --- a/src/food-market.infrastructure/Integrations/MoySklad/MoySkladClient.cs +++ b/src/food-market.infrastructure/Integrations/MoySklad/MoySkladClient.cs @@ -37,7 +37,8 @@ private HttpRequestMessage Build(HttpMethod method, string pathAndQuery, string // after ';'). The typed MediaTypeWithQualityHeaderValue API normalizes to // "application/json; charset=utf-8" which MoySklad rejects with code 1062. req.Headers.TryAddWithoutValidation("Accept", "application/json;charset=utf-8"); - req.Headers.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip")); + // Don't advertise gzip — HttpClient here isn't configured with AutomaticDecompression, + // and the JSON deserializer would choke on the gzip magic byte (0x1F). return req; }