mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-06 21:11:45 -07:00
[utils] base_url: URL paths can contain & (yt-dlp#4841)
This commit is contained in:
parent
195f22f679
commit
6e34e8f579
2 changed files with 2 additions and 1 deletions
|
@ -540,6 +540,7 @@ class TestUtil(unittest.TestCase):
|
|||
self.assertEqual(base_url('http://foo.de/bar/'), 'http://foo.de/bar/')
|
||||
self.assertEqual(base_url('http://foo.de/bar/baz'), 'http://foo.de/bar/')
|
||||
self.assertEqual(base_url('http://foo.de/bar/baz?x=z/x/c'), 'http://foo.de/bar/')
|
||||
self.assertEqual(base_url('http://foo.de/bar/baz&x=z&w=y/x/c'), 'http://foo.de/bar/baz&x=z&w=y/x/')
|
||||
|
||||
def test_urljoin(self):
|
||||
self.assertEqual(urljoin('http://foo.de/', '/a/b/c.txt'), 'http://foo.de/a/b/c.txt')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue