Skip to content

Commit

Permalink
updated WebSocket implementation to ietf-14
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 16, 2011
1 parent 957bc82 commit 2c6b15d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -4,6 +4,7 @@ This file documents the revision history for Perl extension Mojolicious.
- Deprecated direct hash access to the flash in
Mojolicious::Controller.
- Added EXPERIMENTAL profile helper.
- Updated WebSocket implementation to ietf-14.
- Improved documentation.
- Fixed small redirect_to bug. (judofyr, sri)
- Fixed small attribute selector bug in Mojo::DOM::CSS.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Headers.pm
Expand Up @@ -641,7 +641,7 @@ Shortcut for the C<Sec-WebSocket-Protocol> header.
=head2 C<sec_websocket_version>
my $version = $headers->sec_websocket_version;
$headers = $headers->sec_websocket_version(8);
$headers = $headers->sec_websocket_version(13);
Shortcut for the C<Sec-WebSocket-Version> header.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Transaction/WebSocket.pm
Expand Up @@ -49,7 +49,7 @@ sub client_handshake {
$headers->connection('Upgrade') unless $headers->connection;
$headers->sec_websocket_protocol('mojo')
unless $headers->sec_websocket_protocol;
$headers->sec_websocket_version(8) unless $headers->sec_websocket_version;
$headers->sec_websocket_version(13) unless $headers->sec_websocket_version;

# Generate challenge
my $key = pack 'N*', int(rand 9999999);
Expand Down Expand Up @@ -378,7 +378,7 @@ Mojo::Transaction::WebSocket - WebSocket Transaction Container
L<Mojo::Transaction::WebSocket> is a container for WebSocket transactions as
described in
L<http://www.ietf.org/id/draft-ietf-hybi-thewebsocketprotocol-13.txt>.
L<http://www.ietf.org/id/draft-ietf-hybi-thewebsocketprotocol-14.txt>.
Note that this module is EXPERIMENTAL and might change without warning!
=head1 ATTRIBUTES
Expand Down

0 comments on commit 2c6b15d

Please sign in to comment.