From 52d5d6138867b7522fe9b2b41aaa3d3c894145f1 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 22 Jan 2020 19:50:52 +0900 Subject: [PATCH] [Modify] Replace it --- Example3/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Example3/Program.cs b/Example3/Program.cs index 939bfed8..b9699531 100644 --- a/Example3/Program.cs +++ b/Example3/Program.cs @@ -108,7 +108,8 @@ namespace Example3 res.ContentEncoding = Encoding.UTF8; } - res.WriteContent (contents); + res.ContentLength64 = contents.LongLength; + res.Close (contents, true); }; // Add the WebSocket services.