diff options
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index c205cc5f81b..587178e8ede 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -323,11 +323,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { switch ($name) { case 'CONTENT_TYPE' : case 'CONTENT_LENGTH' : - if (isset($this->server[$name])) { - return $this->server[$name]; - } - break; - case 'REMOTE_ADDR' : + case 'REMOTE_ADDR': if (isset($this->server[$name])) { return $this->server[$name]; } |