From d29d116127b2fcc1b1f6fda47e23bb84179aa601 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 Signed-off-by: Pavel Krasikov --- 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 0524f05572db7..6559a23e8cfde 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -417,7 +417,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.' ); }