Browse Source

return port value parsed without int conversion

CPP-GTK4
yggverse 4 months ago
parent
commit
107ab08784
  1. 12
      src/app/browser/main/tab/page/navbar/request.cpp
  2. 3
      src/app/browser/main/tab/page/navbar/request.hpp

12
src/app/browser/main/tab/page/navbar/request.cpp

@ -52,21 +52,19 @@ string Request::get_host() @@ -52,21 +52,19 @@ string Request::get_host()
return host;
}
string Request::get_path()
string Request::get_port()
{
return path;
return port;
}
string Request::get_query()
string Request::get_path()
{
return path;
}
int Request::get_port()
string Request::get_query()
{
return stoi(
port
);
return path;
}
// Private helpers

3
src/app/browser/main/tab/page/navbar/request.hpp

@ -29,10 +29,9 @@ namespace app::browser::main::tab::page::navbar @@ -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…
Cancel
Save