mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
Applications/Internet/Cyberia: Set Content-Type as application/x-www-form-urlencoded for HTML form POST method
This commit is contained in:
@@ -694,6 +694,7 @@ U0 @cyberia_navigate(Bool refresh = FALSE)
|
|||||||
headers->set("Cookie", cookie_buf, JSON_STRING);
|
headers->set("Cookie", cookie_buf, JSON_STRING);
|
||||||
}
|
}
|
||||||
if (renderer->form_data_str) {
|
if (renderer->form_data_str) {
|
||||||
|
headers->set("Content-Type", "application/x-www-form-urlencoded", JSON_STRING);
|
||||||
resp = Http.Post(renderer->current_url, buffer, renderer->form_data_str, headers);
|
resp = Http.Post(renderer->current_url, buffer, renderer->form_data_str, headers);
|
||||||
// FIXME: form_data_str should be freed
|
// FIXME: form_data_str should be freed
|
||||||
renderer->form_data_str = NULL;
|
renderer->form_data_str = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user