mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Merge pull request #1324 from ignacionr/fix/issue-1323
allow for in-url colon, when port is not specified
This commit is contained in:
3 files changed
+3
-2
No files matched your search
@@ -125,6 +125,7 @@ static void test_url(void) {
|
||||
ASSERT(vcmp(mg_url_host("p://u:p@bar:1234/a"), "bar"));
|
||||
ASSERT(vcmp(mg_url_host("p://u:p@[::1]:1234/a"), "::1"));
|
||||
ASSERT(vcmp(mg_url_host("p://u:p@[1:2::3]:1234/a"), "1:2::3"));
|
||||
ASSERT(vcmp(mg_url_host("p://foo/x:y/z"), "foo"));
|
||||
|
||||
// Port
|
||||
ASSERT(mg_url_port("foo:1234") == 1234);
|
||||
|
||||
Reference in new issue
Block a user