Skip to content

Commit c1b5ead

Browse files
committed
Fix HTTP redirection handling in FullTextTrait.
1 parent 1cc5585 commit c1b5ead

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/RecordManager/Base/Http/HttpService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function createClient(
106106
if (!class_exists($handler)) {
107107
throw new \Exception("HTTP handler class $handler not found");
108108
}
109-
$config['handler'] = new HandlerStack(new $handler());
109+
$config['handler'] = HandlerStack::create(new $handler());
110110
}
111111
$config['headers']['User-Agent'] ??= 'RecordManager';
112112

src/RecordManager/Base/Record/FullTextTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected function getUrl($url)
143143
$maxTries = $this->config['FullTextEnrichment']['max_tries'] ?? 90;
144144
$retryWait = $this->config['FullTextEnrichment']['retry_wait'] ?? 5;
145145
$httpOptions = [
146-
'follow_redirects' => true,
146+
'allow_redirects' => true,
147147
];
148148

149149
if ($maxCacheAge && null !== $this->db) {

0 commit comments

Comments
 (0)