Update index.php

This commit is contained in:
Namhyeon Go 2024-11-23 21:59:44 +09:00
parent 0c0cbd5247
commit 8803fb7f05

View File

@ -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);
}