Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ee4843

Browse files
committed
Fixed bug where the user_info was incorrectly being parsed.
1 parent2643c7c commit2ee4843

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
usingnamespaceboost::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::uriinstance("http://www.example.com/");
2121
BOOST_REQUIRE(uri::valid(instance));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp