From d599c0c81240a68044c2d5ee7c1d7a36e7c00007 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Wed, 13 Nov 2024 16:58:34 -0300 Subject: [PATCH] Bump to latest Azure Functions SDK --- src/Web/GitHubDeviceFlowAuthentication.cs | 6 ++++-- src/Web/Web.csproj | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Web/GitHubDeviceFlowAuthentication.cs b/src/Web/GitHubDeviceFlowAuthentication.cs index 71d2031e..3e45e326 100644 --- a/src/Web/GitHubDeviceFlowAuthentication.cs +++ b/src/Web/GitHubDeviceFlowAuthentication.cs @@ -165,8 +165,10 @@ public async Task Invoke(FunctionContext context, FunctionExecutionDelegate next { case JsonResult jr: if (jr.Value is not null) - await response.WriteAsJsonAsync(jr.Value, jr.ContentType ?? "application/json; charset=utf-8", - (HttpStatusCode)(jr.StatusCode ?? 200)); + { + await response.WriteAsJsonAsync(jr.Value, jr.ContentType ?? "application/json; charset=utf-8"); + response.StatusCode = (HttpStatusCode)(jr.StatusCode ?? 200); + } else if (jr.StatusCode is not null) response.StatusCode = (HttpStatusCode)jr.StatusCode; break; diff --git a/src/Web/Web.csproj b/src/Web/Web.csproj index 47c45892..e3d9563f 100644 --- a/src/Web/Web.csproj +++ b/src/Web/Web.csproj @@ -11,13 +11,13 @@ - + - + - + - +