File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ protected function connect() {
70
70
71
71
// Default headers (using lowercase for simpler array_merge below).
72
72
$ headers = array (
73
- 'host ' => $ host ,
73
+ 'host ' => $ host . " : " . $ port ,
74
74
'user-agent ' => 'websocket-client-php ' ,
75
75
'connection ' => 'Upgrade ' ,
76
76
'upgrade ' => 'websocket ' ,
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ public function testDefaultHeaders() {
231
231
232
232
$ this ->assertRegExp (
233
233
"/GET \/ $ this ->test_id HTTP\/1.1 \r\n"
234
- . "host: localhost \r\n"
234
+ . "host: localhost: " . self :: $ port . " \r\n"
235
235
. "user-agent: websocket-client-php \r\n"
236
236
. "connection: Upgrade \r\n"
237
237
. "upgrade: websocket \r\n"
@@ -251,7 +251,7 @@ public function testUserAgentOverride() {
251
251
252
252
$ this ->assertRegExp (
253
253
"/GET \/ $ this ->test_id HTTP\/1.1 \r\n"
254
- . "host: localhost \r\n"
254
+ . "host: localhost: " . self :: $ port . " \r\n"
255
255
. "user-agent: Deep thought \r\n"
256
256
. "connection: Upgrade \r\n"
257
257
. "upgrade: websocket \r\n"
@@ -271,7 +271,7 @@ public function testAddingHeaders() {
271
271
272
272
$ this ->assertRegExp (
273
273
"/GET \/ $ this ->test_id HTTP\/1.1 \r\n"
274
- . "host: localhost \r\n"
274
+ . "host: localhost: " . self :: $ port . " \r\n"
275
275
. "user-agent: websocket-client-php \r\n"
276
276
. "connection: Upgrade \r\n"
277
277
. "upgrade: websocket \r\n"
You can’t perform that action at this time.
0 commit comments