Skip to content

Commit b45be23

Browse files
Jeroen Habrakendeanberris
Jeroen Habraken
authored andcommitted
implemented userinfo, fixed path, I hope
1 parent 0cf2ddd commit b45be23

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

boost/network/uri/http/detail/parse_specific.hpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,10 @@ namespace boost { namespace network { namespace uri {
100100
start_, end_,
101101
(
102102
qi::lit("//")
103-
>> -qi::lexeme[
104-
*((qi::alnum | qi::punct) - '@')
105-
>> '@'
106-
]
103+
>> -qi::lexeme[qi::raw[*(unreserved | pct_encoded | sub_delims | qi::char_(":"))] >> '@']
107104
>> hostname
108105
>> -qi::lexeme[':' >> qi::ushort_]
109-
>> qi::lexeme[qi::raw[*(qi::char_("/") > *pchar)]]
106+
>> -qi::lexeme['/' >> qi::raw[*pchar > *('/' >> *pchar)]]
110107
>> -qi::lexeme['?' >> qi::raw[*(pchar | qi::char_("/?"))]]
111108
>> -qi::lexeme['#' >> qi::raw[*(pchar | qi::char_("/?"))]]
112109
),

0 commit comments

Comments
 (0)