Fix for issue #21

This commit is contained in:
sta 2013-10-23 16:03:35 +09:00
parent a7d5c1640b
commit dcd0052bc8
5 changed files with 16 additions and 6 deletions

10
.gitignore vendored
View File

@ -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*.*

View File

@ -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.

View File

@ -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
{ {

View File

@ -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 ();

View File

@ -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 ();