diff --git a/lib/server.php b/lib/server.php
index fccb8fad4d00b2d5fe6f31ae9cb29a32edc31a3b..9de9f5a05664480dcdbb8d6204071b49f5acc011 100644
--- a/lib/server.php
+++ b/lib/server.php
@@ -25,7 +25,7 @@ class Server extends SimpleContainer implements IServerContainer {
 			$params = array();
 
 			// we json decode the body only in case of content type json
-			if (isset($_SERVER['CONTENT_TYPE']) && stripos($_SERVER['CONTENT_TYPE'],'json') === true ) {
+			if (isset($_SERVER['CONTENT_TYPE']) && stripos($_SERVER['CONTENT_TYPE'],'json') !== false ) {
 				$params = json_decode(file_get_contents('php://input'), true);
 				$params = is_array($params) ? $params: array();
 			}