From d7e008139cb1b0f2267414037546461d4fafac38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=A2=D0=B0=D1=83=D0=B5=D0=BD=D0=B8=D1=81?= Date: Thu, 29 Jun 2023 22:43:34 +0300 Subject: [PATCH] fix `Oops: Invalid URI: The URI scheme is not valid.` in Retro Online Video Player --- HttpUtil.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpUtil.cs b/HttpUtil.cs index 9e657ae..9b03aed 100644 --- a/HttpUtil.cs +++ b/HttpUtil.cs @@ -147,7 +147,8 @@ public static RequestKind GetKindOfRequest(string RawUrl, string HostHeader = nu if (IsLocalhost(Host, Port)) //check Host name and Port number { // Target is this server, so StandardLocal or AlternateProxy or DirtyAlternateProxy - if (RawUrl.Contains("://")) return RequestKind.AlternateProxy; + if (RawUrl.ToLower().StartsWith("/http:") || RawUrl.ToLower().StartsWith("/https:") || RawUrl.ToLower().StartsWith("/ftp:")) + return RequestKind.AlternateProxy; if (RefererHeader != null) {