Fix a few
This commit is contained in:
parent
3019ea2247
commit
f25973b315
@ -476,7 +476,8 @@ namespace WebSocketSharp.Net
|
|||||||
string error;
|
string error;
|
||||||
if (!tryCreatePorts (value, out _ports, out error))
|
if (!tryCreatePorts (value, out _ports, out error))
|
||||||
throw new CookieException (
|
throw new CookieException (
|
||||||
String.Format ("The value of Port attribute contains an invalid value: {0}", error));
|
String.Format (
|
||||||
|
"The value specified for a Port attribute contains an invalid value: {0}", error));
|
||||||
|
|
||||||
_port = value;
|
_port = value;
|
||||||
}
|
}
|
||||||
@ -582,7 +583,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (name [0] == '$' || name.Contains (_reservedCharsForName)) {
|
if (name [0] == '$' || name.Contains (_reservedCharsForName)) {
|
||||||
message = "Name contains an invalid character.";
|
message = "The value specified for a Name contains an invalid character.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -598,7 +599,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value.Contains (_reservedCharsForValue) && !value.IsEnclosedIn ('"')) {
|
if (value.Contains (_reservedCharsForValue) && !value.IsEnclosedIn ('"')) {
|
||||||
message = "Value contains an invalid character.";
|
message = "The value specified for a Value contains an invalid character.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user