Skip to content

Commit dac3bfb

Browse files
author
Thomas Keller
committed
Curl Driver: Make sure the SAFE_UPLOAD is set to false (since PHP 5.6 the default value is TRUE)
1 parent 4456ee7 commit dac3bfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Jira/Api/Client/CurlClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function sendRequest($method, $url, $data = array(), $endpoint, Authentic
7878
if ($method == "POST") {
7979
curl_setopt($curl, CURLOPT_POST, 1);
8080
if ($isFile) {
81+
curl_setopt($curl, CURLOPT_SAFE_UPLOAD, false);
8182
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
8283
} else {
8384
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));

0 commit comments

Comments
 (0)