[Modify] Trim each element

This commit is contained in:
sta 2018-01-27 17:28:36 +09:00
parent b298b6a70e
commit 8b2873a6e1

View File

@ -123,8 +123,13 @@ namespace WebSocketSharp.Net
if (val == null) if (val == null)
return null; return null;
if (_acceptTypes == null) if (_acceptTypes == null) {
_acceptTypes = val.SplitHeaderValue (',').ToList ().ToArray (); _acceptTypes = val
.SplitHeaderValue (',')
.Trim ()
.ToList ()
.ToArray ();
}
return _acceptTypes; return _acceptTypes;
} }