Fix for issue #21
This commit is contained in:
parent
a7d5c1640b
commit
dcd0052bc8
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,6 +1,14 @@
|
|||||||
## Ignore MonoDevelop build results and temporary files.
|
## Ignore build results and temporary files.
|
||||||
|
|
||||||
|
Backup*
|
||||||
|
_UpgradeReport_Files
|
||||||
bin
|
bin
|
||||||
|
obj
|
||||||
|
|
||||||
*.mdb
|
*.mdb
|
||||||
|
*.pdb
|
||||||
*.pidb
|
*.pidb
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
*.userprefs
|
*.userprefs
|
||||||
|
UpgradeLog*.*
|
||||||
|
@ -85,8 +85,9 @@ namespace WebSocketSharp.Net {
|
|||||||
/// Gets or sets the scheme used to authenticate the clients.
|
/// Gets or sets the scheme used to authenticate the clients.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// One of the <see cref="AuthenticationSchemes"/> values that indicates the scheme used to
|
/// One of the <see cref="WebSocketSharp.Net.AuthenticationSchemes"/> values that indicates
|
||||||
/// authenticate the clients. The default value is <see cref="AuthenticationSchemes.Anonymous"/>.
|
/// the scheme used to authenticate the clients.
|
||||||
|
/// The default value is <see cref="WebSocketSharp.Net.AuthenticationSchemes.Anonymous"/>.
|
||||||
/// </value>
|
/// </value>
|
||||||
/// <exception cref="ObjectDisposedException">
|
/// <exception cref="ObjectDisposedException">
|
||||||
/// This object has been closed.
|
/// This object has been closed.
|
||||||
|
@ -410,7 +410,8 @@ namespace WebSocketSharp.Net
|
|||||||
/// Gets a collection of header names in the collection.
|
/// Gets a collection of header names in the collection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>
|
/// <value>
|
||||||
/// A <see cref="KeysCollection"/> that contains a collection of header names in the collection.
|
/// A <see cref="NameObjectCollectionBase.KeysCollection"/> that contains a collection
|
||||||
|
/// of header names in the collection.
|
||||||
/// </value>
|
/// </value>
|
||||||
public override KeysCollection Keys
|
public override KeysCollection Keys
|
||||||
{
|
{
|
||||||
|
@ -703,7 +703,7 @@ namespace WebSocketSharp.Server
|
|||||||
if (message == null || message.Length == 0)
|
if (message == null || message.Length == 0)
|
||||||
return Broadping ();
|
return Broadping ();
|
||||||
|
|
||||||
byte [] data;
|
byte [] data = null;
|
||||||
var msg = _state.CheckIfStarted () ??
|
var msg = _state.CheckIfStarted () ??
|
||||||
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();
|
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();
|
||||||
|
|
||||||
|
@ -601,7 +601,7 @@ namespace WebSocketSharp.Server
|
|||||||
if (message == null || message.Length == 0)
|
if (message == null || message.Length == 0)
|
||||||
return Broadping ();
|
return Broadping ();
|
||||||
|
|
||||||
byte [] data;
|
byte [] data = null;
|
||||||
var msg = _state.CheckIfStarted () ??
|
var msg = _state.CheckIfStarted () ??
|
||||||
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();
|
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user