Skip to content

Commit d1cadd9

Browse files
authored
Fix sync write
1 parent 5e1363a commit d1cadd9

File tree

1 file changed

+1
-3
lines changed
  • src/Middleware/CORS/samples/SampleDestination

1 file changed

+1
-3
lines changed

src/Middleware/CORS/samples/SampleDestination/Startup.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ private Task HandleRequest(HttpContext context)
8686

8787
context.Response.ContentType = "text/plain; charset=utf-8";
8888
context.Response.ContentLength = content.Length;
89-
context.Response.Body.Write(content, 0, content.Length);
90-
91-
return Task.CompletedTask;
89+
return context.Response.Body.WriteAsync(content, 0, content.Length);
9290
}
9391
}
9492
}

0 commit comments

Comments
 (0)