From e0721a69e8a15bd120e10174f42c9beb90c1f011 Mon Sep 17 00:00:00 2001 From: Pavel Krasikov Date: Thu, 24 Oct 2019 13:51:33 +0300 Subject: [PATCH] fix getContent so body content stream can be accessed on POST method, exception message --- lib/private/AppFramework/Http/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index 7273dc568d6a2..1aeb47893690a 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -421,7 +421,7 @@ protected function getContent() { ) { if ($this->content === false) { throw new \LogicException( - '"put" can only be accessed once if not ' + '"' . strtolower($this->method) . '" can only be accessed once if not ' . 'application/x-www-form-urlencoded or application/json.' ); }