File tree 1 file changed +4
-4
lines changed
src/Symfony/Component/HttpClient/Response
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -158,13 +158,13 @@ private function open(): void
158
158
restore_error_handler ();
159
159
}
160
160
161
- stream_set_blocking ($ h , false );
162
- $ this ->context = $ this ->resolveRedirect = null ;
163
-
164
- if (isset ($ context ['ssl ' ]['peer_certificate_chain ' ])) {
161
+ if (isset ($ context ['ssl ' ]['capture_peer_cert_chain ' ]) && isset (($ context = stream_context_get_options ($ this ->context ))['ssl ' ]['peer_certificate_chain ' ])) {
165
162
$ this ->info ['peer_certificate_chain ' ] = $ context ['ssl ' ]['peer_certificate_chain ' ];
166
163
}
167
164
165
+ stream_set_blocking ($ h , false );
166
+ $ this ->context = $ this ->resolveRedirect = null ;
167
+
168
168
// Create dechunk and inflate buffers
169
169
if (isset ($ this ->headers ['content-length ' ])) {
170
170
$ this ->remaining = (int ) $ this ->headers ['content-length ' ][0 ];
You can’t perform that action at this time.
0 commit comments