summaryrefslogtreecommitdiff
path: root/lib/POE/Component/Client/WebSocket.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/POE/Component/Client/WebSocket.pm')
-rw-r--r--lib/POE/Component/Client/WebSocket.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/POE/Component/Client/WebSocket.pm b/lib/POE/Component/Client/WebSocket.pm
index 642ac64..c2e2ccd 100644
--- a/lib/POE/Component/Client/WebSocket.pm
+++ b/lib/POE/Component/Client/WebSocket.pm
@@ -457,7 +457,7 @@ sub _socket_birth {
ErrorEvent => 'socket_death',
);
- my $request = HTTP::Request->new(GET => '/');
+ my $request = HTTP::Request->new(GET => $heap->{uri}->{path});
$request->protocol('HTTP/1.1');
$request->header(
Upgrade => 'WebSocket',