From b3d99d5418136e5b1f36203a3ec2c4942bb18cc1 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 30 May 2012 11:53:54 +0200 Subject: [PATCH] MINOR Retaining case in PjaxResponseNegotiator, in order to pass back to client correctly --- control/PjaxResponseNegotiator.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/control/PjaxResponseNegotiator.php b/control/PjaxResponseNegotiator.php index 06f598e5b..6aa4e9732 100644 --- a/control/PjaxResponseNegotiator.php +++ b/control/PjaxResponseNegotiator.php @@ -40,16 +40,12 @@ class PjaxResponseNegotiator { */ 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]);