diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2021-02-07 02:04:26 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2021-02-07 02:05:50 +1300 |
commit | 96e5706f790b5a93adfa4c7e841bc67f7af613da (patch) | |
tree | 1c637278ba17ca05cdd831e9ba553e6dceae6704 | |
parent | Add SNI parameter to POE::Filter::SSL (diff) | |
download | POE-Component-Client-WebSocket-develop.tar.gz POE-Component-Client-WebSocket-develop.zip |
Preserve URI path from original requestrelease/v0.28develop
-rw-r--r-- | lib/POE/Component/Client/WebSocket.pm | 2 |
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', |