mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
Support 307 redirects for GET requests
svn path=/trunk/netsurf/; revision=10353
This commit is contained in:
parent
863d5c77c3
commit
a70c67fa35
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user