diff options
author | CastagnaIT <gottardo.stefano.83@gmail.com> | 2024-10-21 14:51:28 +0200 |
---|---|---|
committer | CastagnaIT <gottardo.stefano.83@gmail.com> | 2024-10-21 14:51:28 +0200 |
commit | 07cd71ae9c893809d98494563739223e9c4c40b4 (patch) | |
tree | 72f6426ea6ea2dafafca3d6623b960e5fc04ea4a | |
parent | 8bb113bb2143ea43072ad5cd580b4de728d50925 (diff) |
[tests] curl test to preserve slashes between protocol and path
-rw-r--r-- | xbmc/test/TestURL.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/test/TestURL.cpp b/xbmc/test/TestURL.cpp index e74d3be009..16971eebf5 100644 --- a/xbmc/test/TestURL.cpp +++ b/xbmc/test/TestURL.cpp @@ -70,3 +70,10 @@ const TestURLGetWithoutUserDetailsData values[] = { }; INSTANTIATE_TEST_SUITE_P(URL, TestURLGetWithoutUserDetails, ValuesIn(values)); + +TEST(TestURLGetWithoutOptions, PreserveSlashesBetweenProtocolAndPath) +{ + std::string url{"https://example.com//stream//example/index.m3u8"}; + CURL input{url}; + EXPECT_EQ(input.GetWithoutOptions(), url); +} |