Răsfoiți Sursa

https:// URL with r2.cloudflarestorage.com hostname is interpreted as S3 protocol, instead of WebDAV

Source commit: 1dc26d2606c13f99f4b6d63f34b4171cafa4ea31
Martin Prikryl 2 ani în urmă
părinte
comite
6abd8fa1f5
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      source/core/SessionData.cpp

+ 2 - 1
source/core/SessionData.cpp

@@ -2362,7 +2362,8 @@ bool __fastcall TSessionData::ParseUrl(UnicodeString Url, TOptions * Options,
         if ((AFSProtocol == fsWebDAV) &&
             (IsDomainOrSubdomain(HostName, S3LibDefaultHostName()) ||
              IsDomainOrSubdomain(HostName, L"digitaloceanspaces.com") ||
-             IsDomainOrSubdomain(HostName, L"storage.googleapis.com")))
+             IsDomainOrSubdomain(HostName, L"storage.googleapis.com") ||
+             IsDomainOrSubdomain(HostName, L"r2.cloudflarestorage.com")))
         {
           AFSProtocol = fsS3;
         }