Skip to content

Commit 810bcdc

Browse files
authored
Merge pull request Lawouach#210 from isubas/fix-hostname
fixes parsed hostname
2 parents 6848c9c + 24974c0 commit 810bcdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ws4py/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def handshake_headers(self):
272272
self.host = parsed.hostname
273273
else:
274274
self.host = 'localhost'
275-
origin = scheme + '://' + parsed.hostname
275+
origin = scheme + '://' + self.host
276276
if parsed.port:
277277
origin = origin + ':' + str(parsed.port)
278278
headers.append(('Origin', origin))

0 commit comments

Comments
 (0)