Skip to content

Commit 9ccdead

Browse files
committed
format code
1 parent 73d68e5 commit 9ccdead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Qiniu/Http/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,19 @@ private static function sendRequest($request)
8585
CURLOPT_CUSTOMREQUEST => $request->method,
8686
CURLOPT_URL => $request->url
8787
);
88+
8889
if (!empty($request->headers)) {
8990
$headers = array();
9091
foreach ($request->headers as $key => $val) {
9192
array_push($headers, "$key: $val");
9293
}
9394
$options[CURLOPT_HTTPHEADER] = $headers;
9495
}
96+
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
9597

9698
if (!empty($request->body)) {
9799
$options[CURLOPT_POSTFIELDS] = $request->body;
98100
}
99-
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
100101
curl_setopt_array($ch, $options);
101102
$result = curl_exec($ch);
102103
$t2 = microtime(true);

0 commit comments

Comments
 (0)