1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

[xml] Do not override headers if they did not change.

This commit is contained in:
Witold Filipczyk 2021-08-07 20:50:36 +02:00
parent a5c6adb7db
commit 86edf56482

View File

@ -314,6 +314,8 @@ render_xhtml_document(struct cache_entry *cached, struct document *document, str
buffer = &tt;
document->text = tt.source;
}
mem_free_set(&cached->head, head.source);
if (add_to_head) {
mem_free_set(&cached->head, head.source);
}
render_html_document(cached, document, buffer);
}