Browse Source

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.
migration/unlabaled-1.29.2
Wez Furlong 24 years ago
parent
commit
3a8c49afc1
  1. 1
      ext/standard/http_fopen_wrapper.c

1
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:

Loading…
Cancel
Save