summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-10-13 01:03:43 +0000
committerWez Furlong <wez@php.net>2002-10-13 01:03:43 +0000
commit3a8c49afc178ec74bbf60309147b3af477fa60b2 (patch)
tree5bfddcf4d27621b3e221eab9aa6085dff2c444de
parent495dbef642bab8a338fa352c4f35c92f79313fbe (diff)
downloadphp-git-3a8c49afc178ec74bbf60309147b3af477fa60b2.tar.gz
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.
-rw-r--r--ext/standard/http_fopen_wrapper.c1
1 files changed, 1 insertions, 0 deletions
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: