diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-11 14:11:33 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-11 14:11:33 +0000 |
commit | a70c67fa35594390748e045fbb0b460250091490 (patch) | |
tree | 3af7ce40c50451bab3f58ceeaf78deadf78bc113 /content | |
parent | 863d5c77c31ed01001c2671b90741e964f6f98db (diff) | |
download | netsurf-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.c | 4 |
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; } |