File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments