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
87966860
Commit
87966860
authored
Dec 23, 2014
by
Sean Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this should be key => value format.
parent
45ed4658
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
library/Solarium/Core/Client/Adapter/Curl.php
library/Solarium/Core/Client/Adapter/Curl.php
+1
-1
No files found.
library/Solarium/Core/Client/Adapter/Curl.php
View file @
87966860
...
...
@@ -184,7 +184,7 @@ class Curl extends Configurable implements AdapterInterface
if
(
$request
->
getFileUpload
())
{
if
(
version_compare
(
PHP_VERSION
,
'5.5.0'
)
>=
0
)
{
$curlFile
=
curl_file_create
(
$request
->
getFileUpload
());
curl_setopt
(
$handler
,
CURLOPT_POSTFIELDS
,
array
(
'content'
,
$curlFile
));
curl_setopt
(
$handler
,
CURLOPT_POSTFIELDS
,
array
(
'content'
=>
$curlFile
));
}
else
{
curl_setopt
(
$handler
,
CURLOPT_POSTFIELDS
,
array
(
'content'
=>
'@'
.
$request
->
getFileUpload
()));
}
...
...
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