Skip to content

Commit

Permalink
Merge pull request #335 from solariumphp/revert-334-fix-curl
Browse files Browse the repository at this point in the history
Revert "Fix curl headers for solr > 5"
  • Loading branch information
basdenooijer committed Jun 11, 2015
2 parents 52a87a8 + 8f135a8 commit 243ef1f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions library/Solarium/Core/Client/Adapter/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,7 @@ public function createHandle($request, $endpoint)
}

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
Expand Down

0 comments on commit 243ef1f

Please sign in to comment.