Handle temporary redirects (HTTP status code 307)
PR: kern/112515 Submitted by: Ryan C. Gordon <icculus@icculus.org> MFC after: 3 weeks
This commit is contained in:
parent
1b8de9281a
commit
396660deb6
@ -92,6 +92,7 @@ __FBSDID("$FreeBSD$");
|
||||
#define HTTP_MOVED_PERM 301
|
||||
#define HTTP_MOVED_TEMP 302
|
||||
#define HTTP_SEE_OTHER 303
|
||||
#define HTTP_TEMP_REDIRECT 307
|
||||
#define HTTP_NEED_AUTH 401
|
||||
#define HTTP_NEED_PROXY_AUTH 407
|
||||
#define HTTP_BAD_RANGE 416
|
||||
@ -99,6 +100,7 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#define HTTP_REDIRECT(xyz) ((xyz) == HTTP_MOVED_PERM \
|
||||
|| (xyz) == HTTP_MOVED_TEMP \
|
||||
|| (xyz) == HTTP_TEMP_REDIRECT \
|
||||
|| (xyz) == HTTP_SEE_OTHER)
|
||||
|
||||
#define HTTP_ERROR(xyz) ((xyz) > 400 && (xyz) < 599)
|
||||
|
Loading…
Reference in New Issue
Block a user