mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-05 17:31:03 +00:00
Update index.php
This commit is contained in:
parent
0c0cbd5247
commit
8803fb7f05
|
@ -428,8 +428,8 @@ function relay_fetch_url($params) {
|
|||
}
|
||||
|
||||
// check it is POST request
|
||||
if ($method == "POST") {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
||||
if ($data == "POST") {
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, array($data));
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user