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

[document] parse meta also when there are headers

This commit is contained in:
Witold Filipczyk 2024-02-28 20:37:24 +01:00
parent 5baef7e2ef
commit 862dfcc672

View File

@ -271,10 +271,13 @@ render_xhtml_document(struct cache_entry *cached, struct document *document, str
initialised = 1;
}
if (!document->dom && !cached->head && buffer && buffer->source) {
if (!document->dom && buffer && buffer->source) {
struct string head;
if (init_string(&head)) {
if (cached->head) {
add_to_string(&head, cached->head);
}
scan_http_equiv(buffer->source, buffer->source + buffer->length, &head, NULL, document->cp);
mem_free_set(&cached->head, head.source);
}