Relative URLs always fail to match on Xamarin Android
Closed this issue · 1 comments
richardszalay commented
var handler = new MockHttpMessageHandler();
handler.When("/local").Respond(HttpStatusCode.OK);
var client = new HttpClient(handler);
var result = client.GetAsync("http://localhost/local").Result;
result.EnsureSuccessStatusCode();
richardszalay commented
It appears that, on Xamarin Android, Uri.TryParse
will add a file://
scheme to a relative Uri. This behavior also affects Uri.IsWellFormedUriString