From a140df308d1fc279d0304257d1c970c0e757a2b6 Mon Sep 17 00:00:00 2001 From: amit kumar <88873525+amit-vb@users.noreply.github.com> Date: Mon, 27 Jun 2022 19:24:46 +0530 Subject: [PATCH] [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 --- certified-connectors/Airmeet/script.csx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/certified-connectors/Airmeet/script.csx b/certified-connectors/Airmeet/script.csx index a34bebcb7..c25c3a1f5 100644 --- a/certified-connectors/Airmeet/script.csx +++ b/certified-connectors/Airmeet/script.csx @@ -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");