From 64f02eca54449ad89e5c1079b946a18da30c480f Mon Sep 17 00:00:00 2001 From: oneRain Date: Tue, 1 Dec 2020 14:21:13 +0800 Subject: [PATCH] fix: duplicated X-LC-Session --- Storage/Storage/Internal/Http/LCHttpClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Storage/Storage/Internal/Http/LCHttpClient.cs b/Storage/Storage/Internal/Http/LCHttpClient.cs index 5a4bb6a..85b4d1f 100644 --- a/Storage/Storage/Internal/Http/LCHttpClient.cs +++ b/Storage/Storage/Internal/Http/LCHttpClient.cs @@ -206,7 +206,7 @@ namespace LeanCloud.Storage.Internal.Http { } // 当前用户 Session Token LCUser currentUser = await LCUser.GetCurrent(); - if (currentUser != null) { + if (!headers.Contains("X-LC-Session") && currentUser != null) { headers.Add("X-LC-Session", currentUser.SessionToken); } }