-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using RequestHandler component the code tries to guess the extension by checking the Accept header. The current code maps all the types sent as acceptable by the requester (usually browser) and just use the first. This is just a quicker solution where moving the order of the items on the array makes the code to reduce around 400 loops with in_array check inside for requests coming from the most common browsers (Chrome, Safari, Firefox, IE).
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 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