Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
243ef1f6
Commit
243ef1f6
authored
Jun 11, 2015
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #335 from solariumphp/revert-334-fix-curl
Revert "Fix curl headers for solr > 5"
parents
52a87a84
8f135a8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
library/Solarium/Core/Client/Adapter/Curl.php
library/Solarium/Core/Client/Adapter/Curl.php
+1
-5
No files found.
library/Solarium/Core/Client/Adapter/Curl.php
View file @
243ef1f6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment