Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 06ddfc8a174f6cc7694d1bda67f0d0a035bf996f 1 parent ab602f8
@xantus authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.