1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-02 10:23:29 +02:00

fix envoy 426 repsonse

This commit is contained in:
王群强
2020-12-03 09:29:12 +08:00
committed by GitHub
parent 032263954c
commit dd69f26828

View File

@@ -69,6 +69,7 @@ abstract class AbstractDecoder
$options = [ $options = [
'http' => [ 'http' => [
'method'=>"GET", 'method'=>"GET",
'protocol_version'=>1.1, // force use HTTP 1.1 for service mesh environment with envoy
'header'=>"Accept-language: en\r\n". 'header'=>"Accept-language: en\r\n".
"User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\r\n" "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\r\n"
] ]