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
obj
*.mdb
*.pdb
*.pidb
*.suo
*.user
*.userprefs
UpgradeLog*.*

View File

@ -85,8 +85,9 @@ namespace WebSocketSharp.Net {
/// Gets or sets the scheme used to authenticate the clients.
/// </summary>
/// <value>
/// One of the <see cref="AuthenticationSchemes"/> values that indicates the scheme used to
/// authenticate the clients. The default value is <see cref="AuthenticationSchemes.Anonymous"/>.
/// One of the <see cref="WebSocketSharp.Net.AuthenticationSchemes"/> values that indicates
/// the scheme used to authenticate the clients.
/// The default value is <see cref="WebSocketSharp.Net.AuthenticationSchemes.Anonymous"/>.
/// </value>
/// <exception cref="ObjectDisposedException">
/// This object has been closed.

View File

@ -410,7 +410,8 @@ namespace WebSocketSharp.Net
/// Gets a collection of header names in the collection.
/// </summary>
/// <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>
public override KeysCollection Keys
{

View File

@ -703,7 +703,7 @@ namespace WebSocketSharp.Server
if (message == null || message.Length == 0)
return Broadping ();
byte [] data;
byte [] data = null;
var msg = _state.CheckIfStarted () ??
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();

View File

@ -601,7 +601,7 @@ namespace WebSocketSharp.Server
if (message == null || message.Length == 0)
return Broadping ();
byte [] data;
byte [] data = null;
var msg = _state.CheckIfStarted () ??
(data = Encoding.UTF8.GetBytes (message)).CheckIfValidPingData ();