Skip to content
Snippets Groups Projects

Allow to use GET request instead of HEAD to avoid issues with Signged URL for AWS S3 - 2.1.x

6 files
+ 154
10
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -235,7 +235,7 @@ class FileLinkItem extends LinkItem implements FileLinkInterface {
try {
// Perform only a HEAD method to save bandwidth.
$this->setResponse($this->getHttpClient()->head($url, $options));
$this->setResponse($this->getHttpClient()->request(_file_link_request_method(), $url, $options));
}
catch (RequestException $request_exception) {
$this->setException($request_exception);
Loading