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

@@ -33,7 +33,7 @@ describe('A server with the Solid WebSockets API', (): void => {
it('sets the Updates-Via header.', async(): Promise<void> => {
const response = await fetch(baseUrl);
expect(response.headers.get('Updates-Via')).toBe(`ws://localhost:${port}`);
expect(response.headers.get('Updates-Via')).toBe(`ws://localhost:${port}/`);
});
it('exposes the Updates-Via header via CORS.', async(): Promise<void> => {