fix url parsing to pickup protocol
This commit is contained in:
parent
68e949a699
commit
a075dcde45
1 changed files with 3 additions and 2 deletions
|
|
@ -52,10 +52,11 @@ namespace fc {
|
|||
*/
|
||||
url& url::from_string( const string& s ) {
|
||||
fc::stringstream ss(s);
|
||||
fc::string _proto,skip,_user,_pass,_host,_port,_path,_args;
|
||||
fc::getline( ss, _proto, ':' );
|
||||
fc::string skip,_user,_pass,_host,_port,_path,_args;
|
||||
fc::getline( ss, proto, ':' );
|
||||
fc::getline( ss, skip, '/' );
|
||||
fc::getline( ss, skip, '/' );
|
||||
|
||||
if( s.find('@') != fc::string::npos ) {
|
||||
fc::string user_pass;
|
||||
fc::getline( ss, user_pass, '@' );
|
||||
|
|
|
|||
Loading…
Reference in a new issue