mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-10 13:09: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);
|
||||
|
||||
@http_response* resp = NULL;
|
||||
JsonObject* headers = NULL;
|
||||
JsonObject* headers = Json.CreateObject(browser_task);
|
||||
U8* domain = renderer->current_url->host;
|
||||
JsonKey* cookie_keys = NULL;
|
||||
U8 cookie_buf[2048];
|
||||
@@ -682,7 +682,6 @@ U0 @cyberia_navigate(Bool refresh = FALSE)
|
||||
win->focused_widget = addressbar1;
|
||||
} else {
|
||||
if (cyberia->o("cookies")->@(domain)) {
|
||||
headers = Json.CreateObject(browser_task);
|
||||
cookie_keys = cyberia->o("cookies")->o(domain)->keys;
|
||||
StrCpy(cookie_buf, "");
|
||||
while (cookie_keys) {
|
||||
|
||||
Reference in New Issue
Block a user