return port value parsed without int conversion

This commit is contained in:
yggverse 2024-08-16 08:59:50 +03:00
parent 2986a475c1
commit 107ab08784
2 changed files with 6 additions and 9 deletions

View file

@ -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()
{