[Modify] Polish it

master
sta 6 years ago
parent a14638747b
commit ac9d5a49a7

@ -1809,11 +1809,11 @@ namespace WebSocketSharp.Net
/// </exception> /// </exception>
public void Set (HttpResponseHeader header, string value) public void Set (HttpResponseHeader header, string value)
{ {
value = checkValue (value);
var key = header.ToString (); var key = header.ToString ();
var name = getHeaderName (key); var name = getHeaderName (key);
value = checkValue (value);
checkRestricted (name, HttpHeaderType.Response); checkRestricted (name, HttpHeaderType.Response);
checkAllowed (HttpHeaderType.Response); checkAllowed (HttpHeaderType.Response);
set (name, value, HttpHeaderType.Response); set (name, value, HttpHeaderType.Response);

Loading…
Cancel
Save