From 1d14400c0e3311cd3f36e881b861ac385cf34459 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 14 Mar 2020 21:42:52 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/WebHeaderCollection.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 894a1cc1..5de951d1 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -814,8 +814,11 @@ namespace WebSocketSharp.Net if (_internallyUsed) return; - if (isRestricted (name, true)) - throw new ArgumentException ("This header must be modified with the appropiate property."); + if (isRestricted (name, true)) { + var msg = "This header must be modified with the appropiate property."; + + throw new ArgumentException (msg); + } } private void checkState (bool response)