File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public static function sendRequest($request)
83
83
CURLOPT_HEADER => true ,
84
84
CURLOPT_NOBODY => false ,
85
85
CURLOPT_CUSTOMREQUEST => $ request ->method ,
86
- CURLOPT_URL => $ request ->url
86
+ CURLOPT_URL => $ request ->url ,
87
87
);
88
88
89
89
// Handle open_basedir & safe mode
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public function json()
130
130
131
131
private static function bodyJson ($ body )
132
132
{
133
- return \Qiniu \json_decode ((string )$ body , true , 512 );
133
+ return \Qiniu \json_decode ((string ) $ body , true , 512 );
134
134
}
135
135
136
136
public function xVia ()
@@ -170,7 +170,7 @@ public function needRetry()
170
170
171
171
private static function isJson ($ headers )
172
172
{
173
- return array_key_exists ('Content-Type ' , $ headers ) &&
173
+ return array_key_exists ('content-type ' , $ headers ) &&
174
174
strpos ($ headers ['Content-Type ' ], 'application/json ' ) === 0 ;
175
175
}
176
176
}
You can’t perform that action at this time.
0 commit comments