Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no need for a prefix
  • Loading branch information
kraih committed Jan 10, 2016
1 parent 1d4cb41 commit ca51074
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/WebSocket.pm
Expand Up @@ -144,9 +144,9 @@ sub parse_frame {
sub server_handshake {
my $tx = shift;

my $res_headers = $tx->res->headers;
$res_headers->upgrade('websocket')->connection('Upgrade');
$res_headers->sec_websocket_accept(
my $headers = $tx->res->headers;
$headers->upgrade('websocket')->connection('Upgrade');
$headers->sec_websocket_accept(
_challenge($tx->req->headers->sec_websocket_key));

return $tx;
Expand Down

0 comments on commit ca51074

Please sign in to comment.