summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-11 14:11:33 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-11 14:11:33 +0000
commita70c67fa35594390748e045fbb0b460250091490 (patch)
tree3af7ce40c50451bab3f58ceeaf78deadf78bc113 /content
parent863d5c77c31ed01001c2671b90741e964f6f98db (diff)
downloadnetsurf-a70c67fa35594390748e045fbb0b460250091490.tar.gz
netsurf-a70c67fa35594390748e045fbb0b460250091490.tar.bz2
Support 307 redirects for GET requests
svn path=/trunk/netsurf/; revision=10353
Diffstat (limited to 'content')
-rw-r--r--content/llcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/llcache.c b/content/llcache.c
index aee22c585..c1dc2f4df 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -1666,8 +1666,8 @@ nserror llcache_fetch_redirect(llcache_object *object, const char *target,
if (http_code == 301 || http_code == 302 || http_code == 303) {
/* 301, 302, 303 redirects are all unconditional GET requests */
post = NULL;
- } else {
- /** \todo 300, 305, 307 */
+ } else if (http_code != 307 || post != NULL) {
+ /** \todo 300, 305, 307 with POST */
free(url);
return NSERROR_OK;
}