1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Factor check_head_for_cache_control out of process_head

This commit is contained in:
Miciah Dashiel Butler Masters 2007-09-04 12:11:37 +00:00 committed by Miciah Dashiel Butler Masters
parent fc12376bf5
commit 2a2aad15f9

View File

@ -361,11 +361,10 @@ check_head_for_refresh(struct html_context *html_context, unsigned char *head)
mem_free(refresh);
}
void
process_head(struct html_context *html_context, unsigned char *head)
static void
check_head_for_cache_control(struct html_context *html_context,
unsigned char *head)
{
check_head_for_refresh(html_context, head);
if (!get_opt_bool("document.cache.ignore_cache_control", NULL)) {
unsigned char *d;
int no_cache = 0;
@ -429,6 +428,14 @@ process_head(struct html_context *html_context, unsigned char *head)
}
}
void
process_head(struct html_context *html_context, unsigned char *head)
{
check_head_for_refresh(html_context, head);
check_head_for_cache_control(html_context, head);
}