Branch: Tag:

2018-10-02

2018-10-02 12:38:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

WebSocket: Survive filesystem modules that return -1.

Some filesystem modules (eg userfs) return the directory indicator
before looking at the method.

Fixes potential testsuite failure.

2359:       if(fid == -1)    { +  if (id->method == "WebSocketOpen") { +  // DWIM. +  TRACE_LEAVE("Websocket request. Returning 0."); +  return 0; +  }    if(no_magic)    {    TRACE_LEAVE("No magic requested. Returning -1.");