协议修改

This commit is contained in:
chen wei bo
2025-08-25 11:31:15 +08:00
parent da18ae3155
commit 6a6510e34a
11 changed files with 6533 additions and 21936 deletions
@@ -48,13 +48,10 @@ export class HttpManager {
xhr.open(method, url, true);
if (sys.isNative) {
xhr.setRequestHeader("Accept-Encoding", "gzip,deflate");
xhr.setRequestHeader("content-type", "text/html;charset=utf-8");
xhr.setRequestHeader("Content-type", "text/html;charset=utf-8");
}
} else {
xhr.open(method, url, true);
if (!opt.rawBody) {
xhr.setRequestHeader("Content-Type", "application/json");
}
}
if (opt.headers) {
Object.keys(opt.headers).forEach(k => xhr.setRequestHeader(k, opt.headers![k]));