raw structure dump eget option, unspecified argument support

This commit is contained in:
Matej Sekoranja
2013-03-05 20:34:35 +01:00
parent 6374a35024
commit 9755c3b016
4 changed files with 120 additions and 25 deletions
+2 -1
View File
@@ -314,7 +314,8 @@ bool URI::parse(const string& uri, URI& result)
string::const_iterator query_i = find(path_i, fragment_i, '?');
result.path.assign(path_i, query_i);
if( query_i != fragment_i )
result.query_indicated = (query_i != fragment_i);
if ( result.query_indicated )
result.query.assign(++query_i, fragment_i);
return true;