mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
return port value parsed without int conversion
This commit is contained in:
parent
2986a475c1
commit
107ab08784
2 changed files with 6 additions and 9 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue