mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
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.
This commit is contained in:
parent
495dbef642
commit
3a8c49afc1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user