Skip to content

Commit

Permalink
Fixing full address in error
Browse files Browse the repository at this point in the history
$path_with_query already contains a leading /
  • Loading branch information
QuentinBellus committed Apr 2, 2015
1 parent 634493a commit 257c920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function($key, $value) { return "$key: $value"; }, array_keys($headers), $header

// Validate response.
if (!preg_match('#Sec-WebSocket-Accept:\s(.*)$#mUi', $response, $matches)) {
$address = $scheme . '://' . $host . '/' . $path_with_query;
$address = $scheme . '://' . $host . $path_with_query;
throw new ConnectionException(
"Connection to '{$address}' failed: Server sent invalid upgrade response:\n"
. $response
Expand Down

0 comments on commit 257c920

Please sign in to comment.