mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
replace std constructions with glib
This commit is contained in:
parent
a064778d68
commit
cbf786ce4c
8 changed files with 60 additions and 61 deletions
|
|
@ -88,7 +88,7 @@ void Page::update()
|
|||
);
|
||||
|
||||
// Request
|
||||
const std::string request = navbar->get_request() + "\r\n";
|
||||
const Glib::ustring request = navbar->get_request() + "\r\n";
|
||||
|
||||
socket_connection->get_output_stream()->write_async(
|
||||
request.data(),
|
||||
|
|
@ -117,15 +117,13 @@ void Page::update()
|
|||
// Scheme not found but host provided, redirect to gemini://
|
||||
else if (!navbar->get_request_host().empty())
|
||||
{
|
||||
std::string request = "gemini://";
|
||||
Glib::ustring request = "gemini://";
|
||||
|
||||
request += navbar->get_request_host(); // @TODO validate
|
||||
|
||||
if (!navbar->get_request_port().empty())
|
||||
{
|
||||
request += std::stoi(
|
||||
navbar->get_request_port()
|
||||
);
|
||||
request += navbar->get_request_port();
|
||||
}
|
||||
|
||||
request += navbar->get_request_path();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue