Update webpagetool.php

This commit is contained in:
Namhyeon Go 2021-02-01 16:51:16 +09:00 committed by GitHub
parent ea694b98a5
commit e675be840b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,8 +505,8 @@ if(!is_fn("get_web_curl")) {
$options[CURLOPT_CUSTOMREQUEST] = "POST";
$options[CURLOPT_POST] = 1;
$options[CURLOPT_POSTFIELDS] = $_data;
$headers['Content-Type'] = "text/plain;charset=utf-8";
$headers['Accept'] = "text/plain, */*";
$headers['Content-Type'] = "application/octet-stream";
$headers['Accept'] = "application/octet-stream, */*";
$headers['Content-Length'] = strlen($_data);
}
}