fix: duplicated X-LC-Session

oneRain 2020-12-01 14:21:13 +08:00
parent 0ef89b36ea
commit 64f02eca54
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}