diff --git a/src/Web/GitHubDeviceFlowAuthentication.cs b/src/Web/GitHubDeviceFlowAuthentication.cs
index 71d2031..3e45e32 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 47c4589..e3d9563 100644
--- a/src/Web/Web.csproj
+++ b/src/Web/Web.csproj
@@ -11,13 +11,13 @@
-
+
-
+
-
+
-
+