mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
return port value parsed without int conversion
This commit is contained in:
parent
2986a475c1
commit
107ab08784
@ -52,6 +52,11 @@ string Request::get_host()
|
||||
return host;
|
||||
}
|
||||
|
||||
string Request::get_port()
|
||||
{
|
||||
return port;
|
||||
}
|
||||
|
||||
string Request::get_path()
|
||||
{
|
||||
return path;
|
||||
@ -62,13 +67,6 @@ string Request::get_query()
|
||||
return path;
|
||||
}
|
||||
|
||||
int Request::get_port()
|
||||
{
|
||||
return stoi(
|
||||
port
|
||||
);
|
||||
}
|
||||
|
||||
// Private helpers
|
||||
void Request::parse()
|
||||
{
|
||||
|
@ -29,10 +29,9 @@ namespace app::browser::main::tab::page::navbar
|
||||
|
||||
std::string get_scheme();
|
||||
std::string get_host();
|
||||
std::string get_port();
|
||||
std::string get_path();
|
||||
std::string get_query();
|
||||
|
||||
int get_port();
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user