Fix StateManager can't get dapr-api-token header. (#768)

When "dapr_api_token" is specified in the environment variable, actor.statemanager cannot correctly set "dapr-api-token" in the request header。

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
This commit is contained in:
Whwlsfb 2021-10-20 04:34:59 +08:00 committed by GitHub
parent 839acaf877
commit a01a9d61b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace Dapr.Actors.Runtime
Enabled = false,
};
private JsonSerializerOptions jsonSerializerOptions = JsonSerializerDefaults.Web;
private string daprApiToken = null;
private string daprApiToken = DaprDefaults.GetDefaultApiToken();
private int? remindersStoragePartitions = null;
/// <summary>