From 3a8c49afc178ec74bbf60309147b3af477fa60b2 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 13 Oct 2002 01:03:43 +0000 Subject: [PATCH] Make PHP follow 301 correctly. # There may be other cases that need handling properly; I'll have to spend # some time investigating why we even need special cases now; it's got # something to do with Ilia's patch to fix memory leaks. --- ext/standard/http_fopen_wrapper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 20e6b23ec2..5b901b26eb 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -249,6 +249,7 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, ch switch(response_code) { case 200: case 302: + case 301: reqok = 1; break; case 403: -- 2.40.0