diff --git a/library/Solarium/Core/Client/Adapter/Curl.php b/library/Solarium/Core/Client/Adapter/Curl.php index a155cc4c8..5035d23e1 100644 --- a/library/Solarium/Core/Client/Adapter/Curl.php +++ b/library/Solarium/Core/Client/Adapter/Curl.php @@ -156,7 +156,11 @@ public function createHandle($request, $endpoint) } if (!isset($options['headers']['Content-Type'])) { - $options['headers']['Content-Type'] = 'text/xml; charset=utf-8'; + if($method == Request::METHOD_GET){ + $options['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8'; + } else { + $options['headers']['Content-Type'] = 'application/xml; charset=utf-8'; + } } // Try endpoint authentication first, fallback to request for backwards compatibility