From e010e2cff3b4f5b3dbe93822def659a664184a92 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 25 Dec 2018 21:31:19 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index e23ad343..8fa75feb 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -293,10 +293,12 @@ namespace WebSocketSharp.Net } } - if (entity.Length > 0) + if (entity.Length > 0) { buff.Append (entity.ToString ()); - else if (haveTrailingDigits) - buff.Append (number.ToString (CultureInfo.InvariantCulture)); + + if (haveTrailingDigits) + buff.Append (number.ToString (CultureInfo.InvariantCulture)); + } return buff.ToString (); }