diff --git a/src/document/html/parser.c b/src/document/html/parser.c index 3cfdb7bf..c1e31bd7 100644 --- a/src/document/html/parser.c +++ b/src/document/html/parser.c @@ -302,7 +302,7 @@ process_head(struct html_context *html_context, unsigned char *head) unsigned char *refresh, *url; refresh = parse_header(head, "Refresh", NULL); - if (!refresh) return; + if (refresh) { parse_header_param(refresh, "URL", &url); if (!url) { @@ -359,6 +359,7 @@ process_head(struct html_context *html_context, unsigned char *head) } mem_free(refresh); + } if (!get_opt_bool("document.cache.ignore_cache_control", NULL)) { unsigned char *d; diff --git a/test/nocache.html b/test/nocache.html new file mode 100644 index 00000000..cfaea961 --- /dev/null +++ b/test/nocache.html @@ -0,0 +1,6 @@ + + + +

This document should not be cached.

+ + diff --git a/test/refresh+nocache.html b/test/refresh+nocache.html new file mode 100644 index 00000000..13b8c6ee --- /dev/null +++ b/test/refresh+nocache.html @@ -0,0 +1,10 @@ + + + + + + +

Reload after 3 seconds.

+

This document should not be cached.

+ +