Skip to content

Commit 2ee4843

Browse files
committed
Fixed bug where the user_info was incorrectly being parsed.
1 parent 2643c7c commit 2ee4843

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

libs/network/src/uri/parse.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ struct uri_grammar : qi::grammar<
169169
// authority = [ userinfo "@" ] host [ ":" port ]
170170
hier_part %=
171171
(
172-
"//"
173-
>> -(user_info >> '@')
172+
(("//" >> user_info >> '@') | "//")
174173
>> host
175174
>> -(':' >> port)
176175
>> path_abempty

libs/network/test/uri/url_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
using namespace boost::network;
1717

18-
BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(basic_uri_test, 1)
18+
//BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES(basic_uri_test, 1)
1919
BOOST_AUTO_TEST_CASE(basic_uri_test) {
2020
uri::uri instance("http://www.example.com/");
2121
BOOST_REQUIRE(uri::valid(instance));

0 commit comments

Comments
 (0)