Fixed: use correct method for generating signature

This commit is contained in:
2023-01-07 20:51:37 +01:00
parent 1fad0f88a4
commit b23019cb3a

View File

@@ -60,7 +60,7 @@ final class StoredObjectManager implements StoredObjectManagerInterface
$this
->tempUrlGenerator
->generate(
Request::METHOD_PUT,
Request::METHOD_HEAD,
$document->getFilename()
)
->url
@@ -143,6 +143,7 @@ final class StoredObjectManager implements StoredObjectManagerInterface
if ($response->getStatusCode() !== Response::HTTP_CREATED) {
throw StoredObjectManagerException::invalidStatusCode($response->getStatusCode());
}
}
private function extractLastModifiedFromResponse(ResponseInterface $response): DateTimeImmutable