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:
parent
d10108751f
commit
085c87edbc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user