Applications/Internet/Cyberia: Set Content-Type as application/x-www-form-urlencoded for HTML form POST method

This commit is contained in:
Alec Murphy
2025-10-10 14:11:19 -04:00
parent 0266caab91
commit 6c8c64b2ec

View File

@@ -694,6 +694,7 @@ U0 @cyberia_navigate(Bool refresh = FALSE)
headers->set("Cookie", cookie_buf, JSON_STRING);
}
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);
// FIXME: form_data_str should be freed
renderer->form_data_str = NULL;