From c9cc0dd2a926a7538cfdf2db1bf037a89e1ddf8b Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 19 Aug 2021 17:03:22 +0200 Subject: [PATCH] Update status code. --- src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php index c191156fe..bb0dfb8e2 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php @@ -213,7 +213,7 @@ final class ChillWopi implements WopiInterface $response = $this->httpClient->sendRequest($this->psr17->createRequest('PUT', $object->url)->withBody($request->getBody())); - if (200 !== $response->getStatusCode()) + if (201 !== $response->getStatusCode()) { return $this ->psr17