Skip to content
Browse files

check is_secure and use wss in the websocket url, part deux: need coffee

  • Loading branch information...
1 parent ab602f8 commit 06ddfc8a174f6cc7694d1bda67f0d0a035bf996f @xantus committed Mar 29, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 script/websocket-example-1
  2. +1 −1 script/websocket-irc-example-1
View
2 script/websocket-example-1
@@ -44,7 +44,7 @@ app->start;
__DATA__
@@ index.html.ep
-% my $url = $self->req->url->to_abs->scheme( $self->req->is_secure ? : 'wss' : 'ws' )->path( '/' );
+% my $url = $self->req->url->to_abs->scheme( $self->req->is_secure ? 'wss' : 'ws' )->path( '/' );
<!doctype html>
<html>
<head>
View
2 script/websocket-irc-example-1
@@ -112,7 +112,7 @@ app->start;
__DATA__
@@ index.html.ep
-% my $url = $self->req->url->to_abs->scheme( $self->req->is_secure ? : 'wss' : 'ws' )->path( '/' );
+% my $url = $self->req->url->to_abs->scheme( $self->req->is_secure ? 'wss' : 'ws' )->path( '/' );
<!doctype html>
<html>
<head>

0 comments on commit 06ddfc8

Please sign in to comment.
Something went wrong with that request. Please try again.