[w3m-dev 03985] Re: support for 307 Temporary Redirect
* file.c (loadGeneralFile): support 307 Temporary Redirect From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2003-10-08 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* [w3m-dev 03985] Re: support for 307 Temporary Redirect
|
||||||
|
* file.c (loadGeneralFile): support 307 Temporary Redirect
|
||||||
|
|
||||||
2003-10-06 Fumitoshi UKAI <ukai@debian.or.jp>
|
2003-10-06 Fumitoshi UKAI <ukai@debian.or.jp>
|
||||||
|
|
||||||
* fix build error --disbable-m17n
|
* fix build error --disbable-m17n
|
||||||
@@ -8171,4 +8176,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.881 2003/10/05 18:52:50 ukai Exp $
|
$Id: ChangeLog,v 1.882 2003/10/08 14:51:33 ukai Exp $
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: file.c,v 1.230 2003/10/05 18:52:51 ukai Exp $ */
|
/* $Id: file.c,v 1.231 2003/10/08 14:51:34 ukai Exp $ */
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "myctype.h"
|
#include "myctype.h"
|
||||||
@@ -1710,10 +1710,15 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
readHeader(&f, t_buf, FALSE, &pu);
|
readHeader(&f, t_buf, FALSE, &pu);
|
||||||
if (http_response_code >= 301 && http_response_code <= 303
|
if (((http_response_code >= 301 && http_response_code <= 303)
|
||||||
|
|| http_response_code == 307)
|
||||||
&& (p = checkHeader(t_buf, "Location:")) != NULL
|
&& (p = checkHeader(t_buf, "Location:")) != NULL
|
||||||
&& checkRedirection(&pu)) {
|
&& checkRedirection(&pu)) {
|
||||||
/* document moved */
|
/* document moved */
|
||||||
|
/* 301: Moved Permanently */
|
||||||
|
/* 302: Found */
|
||||||
|
/* 303: See Other */
|
||||||
|
/* 307: Temporary Redirect (HTTP/1.1) */
|
||||||
tpath = url_quote_conv(p, DocumentCharset);
|
tpath = url_quote_conv(p, DocumentCharset);
|
||||||
request = NULL;
|
request = NULL;
|
||||||
UFclose(&f);
|
UFclose(&f);
|
||||||
|
|||||||
Reference in New Issue
Block a user