From c313056e68d29ab357f9e99a663bf4520e758d63 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 19 Dec 2018 21:49:57 +0900 Subject: [PATCH] [Modify] Add a check --- websocket-sharp/Net/HttpUtility.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index de4dcdf4..9b044436 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -907,6 +907,9 @@ namespace WebSocketSharp.Net if (output == null) throw new ArgumentNullException ("output"); + if (s.Length == 0) + return; + output.Write (HtmlDecode (s)); }