mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
Fixes https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/967582 Bumps the HttpClient part in mono/corefx at: https://github.com/mono/corefx/commit/ee3acec16b37bec5016da129e1e3840097ca629b The test that would have caught this failure was disabled previously via: https://github.com/mono/mono/commit/2f411750acfd2132f9b4970ef8cf11d9a0f62df9
23 lines
497 B
C#
23 lines
497 B
C#
namespace System.Net.Http
|
|
{
|
|
partial class HttpRequestMessage
|
|
{
|
|
static bool IsAllowedAbsoluteUri (Uri uri)
|
|
{
|
|
if (!uri.IsAbsoluteUri)
|
|
return true;
|
|
|
|
#if WASM
|
|
if (uri.Scheme == "blob")
|
|
return true;
|
|
#endif
|
|
|
|
// Mono URI handling which does not distinguish between file and url absolute paths without scheme
|
|
if (uri.Scheme == Uri.UriSchemeFile && uri.OriginalString.StartsWith ("/", StringComparison.Ordinal))
|
|
return true;
|
|
|
|
return HttpUtilities.IsHttpUri (uri);
|
|
}
|
|
}
|
|
}
|