Permalink
Browse files

MINOR Retaining case in PjaxResponseNegotiator, in order to pass back…

… to client correctly
  • Loading branch information...
1 parent 5178954 commit b3d99d5418136e5b1f36203a3ec2c4942bb18cc1 @chillu chillu committed May 30, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 control/PjaxResponseNegotiator.php
@@ -40,16 +40,12 @@ function __construct($callbacks = array()) {
*/
public function respond(SS_HTTPRequest $request, $extraCallbacks = array()) {
// Prepare the default options and combine with the others
- $callbacks = array_merge(
- array_change_key_case($this->callbacks, CASE_LOWER),
- array_change_key_case($extraCallbacks, CASE_LOWER)
- );
-
+ $callbacks = array_merge($this->callbacks, $extraCallbacks);
$response = new SS_HTTPResponse();
$responseParts = array();
if($fragmentStr = $request->getHeader('X-Pjax')) {
- $fragments = explode(',', strtolower($fragmentStr));
+ $fragments = explode(',', $fragmentStr);
foreach($fragments as $fragment) {
if(isset($callbacks[$fragment])) {
$responseParts[$fragment] = call_user_func($callbacks[$fragment]);

0 comments on commit b3d99d5

Please sign in to comment.