Skip to content

Commit e3e96f4

Browse files
1. 修改Common中httpRequest函数
1 parent b745cea commit e3e96f4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/Common.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ public static function httpRequest($url, $data = null)
1818
$curl = curl_init();
1919
curl_setopt($curl, CURLOPT_URL, $url);
2020
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
21-
curl_setopt($curl, CURLOPT_HEADER, false);
2221
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
2322
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
2423
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
25-
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: Application/json'));
2624
if (!empty($data)) {
2725
curl_setopt($curl, CURLOPT_POST, true);
2826
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

0 commit comments

Comments
 (0)