Fix a few for WebHeaderCollection.cs
This commit is contained in:
parent
7f56847eee
commit
03d5926492
@ -783,8 +783,7 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
value = value.Trim ();
|
value = value.Trim ();
|
||||||
if (value.Length > 65535)
|
if (value.Length > 65535)
|
||||||
throw new ArgumentOutOfRangeException (
|
throw new ArgumentOutOfRangeException ("value", "The length is greater than 65535.");
|
||||||
"value", "The length must not be greater than 65535.");
|
|
||||||
|
|
||||||
if (!IsHeaderValue (value))
|
if (!IsHeaderValue (value))
|
||||||
throw new ArgumentException ("Contains invalid characters.", "value");
|
throw new ArgumentException ("Contains invalid characters.", "value");
|
||||||
@ -999,7 +998,7 @@ namespace WebSocketSharp.Net
|
|||||||
throw new ArgumentNullException ("header");
|
throw new ArgumentNullException ("header");
|
||||||
|
|
||||||
var pos = checkColonSeparated (header);
|
var pos = checkColonSeparated (header);
|
||||||
Add (header.Substring (0, pos), header.Substring (pos + 1));
|
add (header.Substring (0, pos), header.Substring (pos + 1), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1148,11 +1147,10 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the enumerator used to iterate through the <see cref="WebHeaderCollection"/>.
|
/// Gets the enumerator used to iterate through the collection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// An <see cref="IEnumerator"/> instance used to iterate through
|
/// An <see cref="IEnumerator"/> instance used to iterate through the collection.
|
||||||
/// the <see cref="WebHeaderCollection"/>.
|
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public override IEnumerator GetEnumerator ()
|
public override IEnumerator GetEnumerator ()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user