@@ -95,7 +95,7 @@ public function request(string $method, string $url, array $options = []): Respo
95
95
$ scheme = $ url ['scheme ' ];
96
96
$ authority = $ url ['authority ' ];
97
97
$ host = parse_url ($ authority , \PHP_URL_HOST );
98
- $ proxy = self ::getProxyURL ($ options ['proxy ' ], $ url );
98
+ $ proxy = self ::getProxyUrl ($ options ['proxy ' ], $ url );
99
99
$ url = implode ('' , $ url );
100
100
101
101
if (!isset ($ options ['normalized_headers ' ]['user-agent ' ])) {
@@ -408,7 +408,7 @@ private static function createRedirectResolver(array $options, string $host): \C
408
408
}
409
409
}
410
410
411
- return static function ($ ch , string $ location , bool $ noContent ) use (&$ redirectHeaders , & $ options ) {
411
+ return static function ($ ch , string $ location , bool $ noContent ) use (&$ redirectHeaders , $ options ) {
412
412
try {
413
413
$ location = self ::parseUrl ($ location );
414
414
} catch (InvalidArgumentException $ e ) {
@@ -433,7 +433,7 @@ private static function createRedirectResolver(array $options, string $host): \C
433
433
$ url = self ::parseUrl (curl_getinfo ($ ch , \CURLINFO_EFFECTIVE_URL ));
434
434
$ url = self ::resolveUrl ($ location , $ url );
435
435
436
- curl_setopt ($ ch , \CURLOPT_PROXY , self ::getProxyURL ($ options ['proxy ' ], $ url ));
436
+ curl_setopt ($ ch , \CURLOPT_PROXY , self ::getProxyUrl ($ options ['proxy ' ], $ url ));
437
437
438
438
return implode ('' , $ url );
439
439
};
0 commit comments