fix: Add trailing slashes to advertised WebSocket URL.

This commit is contained in:
Ruben Verborgh
2020-11-30 00:36:02 +01:00
parent fc3942b372
commit 6b4088723d
3 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ export class WebSocketAdvertiser extends HttpHandler {
if (socketUrl.hostname !== hostname) {
throw new Error(`Invalid hostname: ${hostname}`);
}
this.socketUrl = socketUrl.href.slice(0, -1);
this.socketUrl = socketUrl.href;
}
public async handle({ response }: { response: HttpResponse }): Promise<void> {