Browse Source

return port value parsed without int conversion

CPP-GTK4
yggverse 3 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()
return 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; return path;
} }
int Request::get_port() string Request::get_query()
{ {
return stoi( return path;
port
);
} }
// Private helpers // Private helpers

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

@ -29,10 +29,9 @@ namespace app::browser::main::tab::page::navbar
std::string get_scheme(); std::string get_scheme();
std::string get_host(); std::string get_host();
std::string get_port();
std::string get_path(); std::string get_path();
std::string get_query(); std::string get_query();
int get_port();
}; };
} }

Loading…
Cancel
Save