1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[curl] Reset string with headers

When following urls, headers were added to previous values.
This commit is contained in:
Witold Filipczyk 2024-03-29 13:38:32 +01:00
parent d10108751f
commit 085c87edbc

View File

@ -381,6 +381,8 @@ http_curl_got_header(void *stream, void *buf, size_t len)
}
mem_free_set(&conn->cached->head, memacpy(http->headers.source, http->headers.length));
mem_free_set(&conn->cached->content_type, NULL);
done_string(&http->headers);
init_string(&http->headers);
}
}