Skip to content

Commit

Permalink
Merge pull request #15 from QuentinBellus/master
Browse files Browse the repository at this point in the history
Fixing full address in error
  • Loading branch information
fiddur committed Apr 11, 2015
2 parents 634493a + 257c920 commit ba2e5f9
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 ba2e5f9

Please sign in to comment.