There was an error while loading. Please reload this page.
1 parent 1cc5585 commit c1b5eadCopy full SHA for c1b5ead
2 files changed
src/RecordManager/Base/Http/HttpService.php
@@ -106,7 +106,7 @@ public function createClient(
106
if (!class_exists($handler)) {
107
throw new \Exception("HTTP handler class $handler not found");
108
}
109
- $config['handler'] = new HandlerStack(new $handler());
+ $config['handler'] = HandlerStack::create(new $handler());
110
111
$config['headers']['User-Agent'] ??= 'RecordManager';
112
src/RecordManager/Base/Record/FullTextTrait.php
@@ -143,7 +143,7 @@ protected function getUrl($url)
143
$maxTries = $this->config['FullTextEnrichment']['max_tries'] ?? 90;
144
$retryWait = $this->config['FullTextEnrichment']['retry_wait'] ?? 5;
145
$httpOptions = [
146
- 'follow_redirects' => true,
+ 'allow_redirects' => true,
147
];
148
149
if ($maxCacheAge && null !== $this->db) {
0 commit comments