Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[wasm] HttpClient regression when using BaseAddress #14630
For a few months, Blazor developers have been reporting this bug, which I've now tracked down to be a regression in Mono.
The problem: if your
var httpClient = new HttpClient(); httpClient.BaseAddress = new System.Uri("http://localhost:52590/"); var task = httpClient.GetStringAsync("/something"); System.Console.WriteLine("OK");
It seems that it's unable to combine the URL with
referenced this issue
May 24, 2019
@rynowak Yes, I was going to discuss this today. We don't have an obvious way of fixing
The problem is that our
The code they're using is
We have a custom implementation of that:
which is essentially the same thing except that it allows "blob" on WASM.
The problem is that Mono's implementation considers