This commit is contained in:
2025-11-11 17:13:17 +09:00
parent c8a86e9081
commit dbd841c3a0
9 changed files with 71 additions and 682 deletions

View File

@@ -4,6 +4,7 @@ using Best.HTTP.Shared.PlatformSupport.Memory;
using Cysharp.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Simulator.Config;
using System;
using System.Collections.Generic;
using System.IO;
@@ -234,7 +235,8 @@ namespace UVC.Network
request.DownloadSettings = new Best.HTTP.Request.Settings.DownloadSettings() { ContentStreamMaxBuffered = 1024 * 1024 * 200 };
request.MethodType = method;
request.SetHeader("Content-Type", "application/json; charset=utf-8");
//if (useAuth) request.SetHeader("access-token", AuthService.Instance.Entiti.accessToken);
if (useAuth) request.SetHeader("Authorization", "Bearer " + Constants.ACESS_TOKEN);
//request.SetHeader("access-token", Constants.ACESS_TOKEN);
JObject headerObject = new JObject();
headerObject.Add("Content-Type", "application/json; charset=utf-8");