Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Rupert-RR-2131-add-accept-header-parsing'
* Rupert-RR-2131-add-accept-header-parsing: php doc adjustments after #2132 Yii code style correction Removed unnecessary spaces. Transferred data for unit tests from the test functions into data providers. Undo accidental permissions change on bootstrap.php Added unit test file for CHttpRequest for the methods parseAcceptHeader() and compareAcceptTypes(). Modified the regexp in parseAcceptHeader() to accept wildcards in the path. Modified the description of compareAcceptTypes() to better reflect the comparison result (higher preference returns lower value, so that most preferred is first in the array). parseAcceptHeader() function description tidy up. Typo corrections and code tidy up. Altered parseAcceptHeader() to use only one regexp. Thanks to Ka on StackExchange for this expression. Typo corrections Separated out parse and compare functions. Reduced regular expression count to 2 from 3. Modified MIME type array map structure. Added #135 back in changelog, which got lost somehow.. Moved position of line to follow numerical order. Enh #2131: Added Accept header parsing to CHttpRequest to give an array of accepted types in order of preference
- Loading branch information
Showing
3 changed files
with
414 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.