websocket: Fix path checking

Change-Id: I4455ff8e17655e61a1aa094d099ca97452a78fbd