mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
Applications/Internet/Cyberia.app: Always create JsonObject for headers in each request
This commit is contained in:
@@ -667,7 +667,7 @@ U0 @cyberia_navigate(Bool refresh = FALSE)
|
|||||||
MemSet(buffer, 0, HTTP_FETCH_BUFFER_SIZE);
|
MemSet(buffer, 0, HTTP_FETCH_BUFFER_SIZE);
|
||||||
|
|
||||||
@http_response* resp = NULL;
|
@http_response* resp = NULL;
|
||||||
JsonObject* headers = NULL;
|
JsonObject* headers = Json.CreateObject(browser_task);
|
||||||
U8* domain = renderer->current_url->host;
|
U8* domain = renderer->current_url->host;
|
||||||
JsonKey* cookie_keys = NULL;
|
JsonKey* cookie_keys = NULL;
|
||||||
U8 cookie_buf[2048];
|
U8 cookie_buf[2048];
|
||||||
@@ -682,7 +682,6 @@ U0 @cyberia_navigate(Bool refresh = FALSE)
|
|||||||
win->focused_widget = addressbar1;
|
win->focused_widget = addressbar1;
|
||||||
} else {
|
} else {
|
||||||
if (cyberia->o("cookies")->@(domain)) {
|
if (cyberia->o("cookies")->@(domain)) {
|
||||||
headers = Json.CreateObject(browser_task);
|
|
||||||
cookie_keys = cyberia->o("cookies")->o(domain)->keys;
|
cookie_keys = cyberia->o("cookies")->o(domain)->keys;
|
||||||
StrCpy(cookie_buf, "");
|
StrCpy(cookie_buf, "");
|
||||||
while (cookie_keys) {
|
while (cookie_keys) {
|
||||||
|
|||||||
Reference in New Issue
Block a user