From 07cd71ae9c893809d98494563739223e9c4c40b4 Mon Sep 17 00:00:00 2001 From: CastagnaIT Date: Mon, 21 Oct 2024 14:51:28 +0200 Subject: [tests] curl test to preserve slashes between protocol and path --- xbmc/test/TestURL.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); +} -- cgit v1.2.3