Šimon Rozsíval

Results 48 comments of Šimon Rozsíval

@karelz when `HttpClient` is used with `SocketsHttpHandler`, the response message's `content.Headers.ContentLength` doesn't have a value even though the HTTP response contained the `Content-Length` header. This doesn't happen when `NSUrlSessionHandler` is...

tl;dr: The root of the problem is gzip compression of the response. The server works correctly. It's not a bug in .NET. It's possibly a bug in WCF and/or `NSUrlSessionHandler`....

@sbomer I was trying to understand the `[FeatureGuard]` attribute and if it can be applied to MAUI (e.g., the `IsXamlRuntimeParsingSupported` feature switch is used to guard codepaths annotated with `[RequiresUnreferencedCode]`)...

@sbomer thanks for the additional details. I tried what you say before and I was confused by the IL4000 and I thought I must be using it incorrectly. I'll give...

We should use the new `GetInterceptableLocation` API in Roslyn https://github.com/dotnet/roslyn/issues/72133

/cc @StephaneDelcroix

@PureWeen how can I trigger CI for this PR?

@jonathanpeppers @grendello This change is probably relevant: https://github.com/xamarin/xamarin-android/pull/8753 @JoacimWall could you please try setting `handler.AutomaticDecompression = DecompressionMethods.None;` or `handler.AutomaticDecompression = DecompressionMethods.GZip;` here: https://github.com/JoacimWall/Joacim_Bug_Report/blob/main/GzipBug/GzipClient/HttpsClientHandlerService.cs#L9?

@JoacimWall I noticed that in the `GzipBug` repro project you set the default `Accept-Encoding` headers here: https://github.com/JoacimWall/Joacim_Bug_Report/blob/main/GzipBug/GzipClient/RestClient.cs#L68-L70. The better way to do this is by setting the [`AutomaticDecompression` property](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclienthandler.automaticdecompression?view=net-8.0): ```...