| @@ -138,8 +138,9 @@ | ||
| 138 | 138 | // https://github.com/php/php-src/issues/17121 |
| 139 | 139 | if (str_starts_with($path, 'https:') || str_starts_with($path, 'http:')) { |
| 140 | 140 | $ctxArray = [ |
| 141 | 141 | 'http' => [ |
| 142 | + 'follow_location' => 0, | |
| 142 | 143 | 'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', |
| 143 | 144 | 'header' => [ |
| 144 | 145 | //'Connection: keep-alive', // unacceptable performance |
| 145 | 146 | 'Accept: image/*;q=0.9,*/*;q=0.8', |