File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -746,15 +746,13 @@ private function initHandle($curl)
746
746
$ curl ->complete ($ this ->completeFunction );
747
747
}
748
748
749
- foreach ($ this ->options as $ option => $ value ) {
750
- $ curl ->setOpt ($ option , $ value );
751
- }
752
- foreach ($ this ->headers as $ key => $ value ) {
753
- $ curl ->setHeader ($ key , $ value );
754
- }
749
+ $ curl ->setOpts ($ this ->options );
750
+ $ curl ->setHeaders ($ this ->headers );
751
+
755
752
foreach ($ this ->cookies as $ key => $ value ) {
756
753
$ curl ->setCookie ($ key , $ value );
757
754
}
755
+
758
756
$ curl ->setJsonDecoder ($ this ->jsonDecoder );
759
757
$ curl ->setXmlDecoder ($ this ->xmlDecoder );
760
758
Original file line number Diff line number Diff line change 36
36
$ test = '' ;
37
37
if (isset ($ _SERVER ['HTTP_X_DEBUG_TEST ' ])) {
38
38
$ test = $ _SERVER ['HTTP_X_DEBUG_TEST ' ];
39
- } else if (isset ($ _GET ['test ' ])) {
39
+ } elseif (isset ($ _GET ['test ' ])) {
40
40
$ test = $ _GET ['test ' ];
41
41
}
42
42
$ key = isset ($ data_values ['key ' ]) ? $ data_values ['key ' ] : '' ;
You can’t perform that action at this time.
0 commit comments