phalcon/cphalcon — pull request #3134 by brainformatik (2014-12-15 14:48:05+00:00)
Title: [2.0.0] HTTP Request:  Fixes and adjustments

We have done some adjustments and fixes.

1)
Method **getJsonRawBody** extended with boolean parameter to have a possibility to return a associative array instead of object. It's compatible with 1.3.x code.

2)
Method **_getQualityHeader** refactored to fix poor mapped header parts and whitespacing. Now its possible to catch parts like that *"text/html;level=1; q=0.5"* (http://tools.ietf.org/html/rfc7231#page-38). It's compatible with 1.3.x code.

3)
Added a new method **getContentType** to get request content type. This method includes also the content type bugfix for php version 5.5.8 (https://bugs.php.net/bug.php?id=66606)

4)
Method **isSoapRequested** refactored with new content type function. It's compatible with 1.3.x code.

5)
Added a new test for content type, extend old tests because of refactoring **_getQualityHeader** and fix **isSoapRequested** test