Commit 243ef1f6 authored by Bas de Nooijer's avatar Bas de Nooijer

Merge pull request #335 from solariumphp/revert-334-fix-curl

Revert "Fix curl headers for solr > 5"
parents 52a87a84 8f135a8c
......@@ -156,11 +156,7 @@ class Curl extends Configurable implements AdapterInterface
}
if (!isset($options['headers']['Content-Type'])) {
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';
}
$options['headers']['Content-Type'] = 'text/xml; charset=utf-8';
}
// Try endpoint authentication first, fallback to request for backwards compatibility
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment