@@ -41,15 +41,15 @@ public function testGetRequest()
41
41
'user_data ' => $ data = new \stdClass (),
42
42
]);
43
43
44
- $ this ->assertSame ([], $ response ->getInfo ('raw_headers ' ));
44
+ $ this ->assertSame ([], $ response ->getInfo ('response_headers ' ));
45
45
$ this ->assertSame ($ data , $ response ->getInfo ()['user_data ' ]);
46
46
$ this ->assertSame (200 , $ response ->getStatusCode ());
47
47
48
48
$ info = $ response ->getInfo ();
49
49
$ this ->assertNull ($ info ['error ' ]);
50
50
$ this ->assertSame (0 , $ info ['redirect_count ' ]);
51
- $ this ->assertSame ('HTTP/1.1 200 OK ' , $ info ['raw_headers ' ][0 ]);
52
- $ this ->assertSame ('Host: localhost:8057 ' , $ info ['raw_headers ' ][1 ]);
51
+ $ this ->assertSame ('HTTP/1.1 200 OK ' , $ info ['response_headers ' ][0 ]);
52
+ $ this ->assertSame ('Host: localhost:8057 ' , $ info ['response_headers ' ][1 ]);
53
53
$ this ->assertSame ('http://localhost:8057/ ' , $ info ['url ' ]);
54
54
55
55
$ headers = $ response ->getHeaders ();
@@ -105,7 +105,7 @@ public function testHttpVersion()
105
105
]);
106
106
107
107
$ this ->assertSame (200 , $ response ->getStatusCode ());
108
- $ this ->assertSame ('HTTP/1.0 200 OK ' , $ response ->getInfo ('raw_headers ' )[0 ]);
108
+ $ this ->assertSame ('HTTP/1.0 200 OK ' , $ response ->getInfo ('response_headers ' )[0 ]);
109
109
110
110
$ body = $ response ->toArray ();
111
111
@@ -252,7 +252,7 @@ public function testRedirects()
252
252
'Content-Type: application/json ' ,
253
253
];
254
254
255
- $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('raw_headers ' ), function ($ h ) {
255
+ $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('response_headers ' ), function ($ h ) {
256
256
return \in_array (substr ($ h , 0 , 4 ), ['HTTP ' , 'Loca ' , 'Cont ' ], true ) && 'Content-Encoding: gzip ' !== $ h ;
257
257
}));
258
258
@@ -326,7 +326,7 @@ public function testMaxRedirects()
326
326
'Content-Type: application/json ' ,
327
327
];
328
328
329
- $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('raw_headers ' ), function ($ h ) {
329
+ $ filteredHeaders = array_values (array_filter ($ response ->getInfo ('response_headers ' ), function ($ h ) {
330
330
return \in_array (substr ($ h , 0 , 4 ), ['HTTP ' , 'Loca ' , 'Cont ' ], true );
331
331
}));
332
332
0 commit comments