complete
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user