1 changed file
Client/HomagGroup.DigitalFactory.ApiGateway.Client/Services | ||
ProductionServices.cs | ||
ProductionServices.cs
/Client/HomagGroup.DigitalFactory.ApiGateway.Client/Services/ProductionServices.cs-1+1/Client/HomagGroup.DigitalFactory.ApiGateway.Client/Services/ProductionServices.cs
Add comment 31 request.Headers.AcceptLanguage.Clear();
Add comment 32 request.Headers.AcceptLanguage.Add(new StringWithQualityHeaderValue(CultureInfo.CurrentUICulture.Name));
Add comment 33 request.Content = new StreamContent(file);
Add comment 34 Minus var response = await Client.SendAsync(request).ConfigureAwait(false);
Add comment 34 Plus var response = await Client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false);
Add comment 35 response.HandleDeprecatedMessages(request, ApiVersion, ThrowExceptionOnDeprecatedCalls, OnDeprecatedAction);
Add comment 36 response.EnsureSuccessStatusCodeWithDetails(request);
Add comment 37 var content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);