[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:
amit kumar 2022-06-27 19:24:46 +05:30 коммит произвёл GitHub
Родитель 9cddae887e
Коммит a140df308d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

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