aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/test/TestURL.cpp7
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);
+}