Skip to content
Snippets Groups Projects
Commit f55269e1 authored by George Nachman's avatar George Nachman
Browse files

Require websocket path to be root

parent e85b0162
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -224,7 +224,11 @@ const char *kWebSocketConnectionHandleAssociatedObjectKey = "kWebSocketConnectio
[connection badRequest];
return;
}
if (![request.URL.path isEqualToString:@"/"]) {
ELog(@"Path %@ not known", request.URL.path);
[connection badRequest];
return;
}
if ([iTermWebSocketConnection validateRequest:request]) {
ILog(@"Upgrading request to websocket");
iTermWebSocketConnection *webSocketConnection = [[iTermWebSocketConnection alloc] initWithConnection:connection];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment