From 03d59264929af858b28dc814720a2fc9c01da874 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 22 Apr 2014 15:02:08 +0900 Subject: [PATCH] Fix a few for WebHeaderCollection.cs --- websocket-sharp/Net/WebHeaderCollection.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index f328f935..32d57c19 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -783,8 +783,7 @@ namespace WebSocketSharp.Net value = value.Trim (); if (value.Length > 65535) - throw new ArgumentOutOfRangeException ( - "value", "The length must not be greater than 65535."); + throw new ArgumentOutOfRangeException ("value", "The length is greater than 65535."); if (!IsHeaderValue (value)) throw new ArgumentException ("Contains invalid characters.", "value"); @@ -999,7 +998,7 @@ namespace WebSocketSharp.Net throw new ArgumentNullException ("header"); var pos = checkColonSeparated (header); - Add (header.Substring (0, pos), header.Substring (pos + 1)); + add (header.Substring (0, pos), header.Substring (pos + 1), false); } /// @@ -1148,11 +1147,10 @@ namespace WebSocketSharp.Net } /// - /// Gets the enumerator used to iterate through the . + /// Gets the enumerator used to iterate through the collection. /// /// - /// An instance used to iterate through - /// the . + /// An instance used to iterate through the collection. /// public override IEnumerator GetEnumerator () {