[Airmeet] Fix CS1674: 'string': type used in a using statement must be implicitly convertible to 'System.IDisposable (#1767)
* [AK] Added region support, question and answer and booth attendance * [AK] Added region support, question and answer and booth attendance * [Airmeet] Api endpoint refactor * [Airmeet] Api endpoint refactor * [Airmeet] CS1674: 'string': type used in a using statement must be implicitly convertible to 'System.IDisposable fix * [Airmeet] CS1674: 'string': type used in a using statement must be implicitly convertible to 'System.IDisposable fix
This commit is contained in:
Родитель
9cddae887e
Коммит
a140df308d
|
@ -71,11 +71,7 @@
|
|||
var airmeetAccessKey);
|
||||
this.Context.Request.Headers.TryGetValues("x-secret-key", out
|
||||
var airmeetSecretKey);
|
||||
this.Context.Request.Headers.TryGetValues("region", out
|
||||
var airmeetRegion);
|
||||
using
|
||||
string authUrl = $"https://{airmeetRegion}/prod/auth";
|
||||
var userInfoRequest = new HttpRequestMessage(HttpMethod.Post, authUrl);
|
||||
var userInfoRequest = new HttpRequestMessage(HttpMethod.Post, "https://api-gateway.airmeet.com/prod/auth");
|
||||
userInfoRequest.Headers.TryAddWithoutValidation("X-Airmeet-Access-Key", airmeetAccessKey);
|
||||
userInfoRequest.Headers.TryAddWithoutValidation("X-Airmeet-Secret-Key", airmeetSecretKey);
|
||||
userInfoRequest.Headers.TryAddWithoutValidation("Content-Type", "application/json");
|
||||
|
|
Загрузка…
Ссылка в новой задаче