From 7f74bd1c3846f0473fb85c63e0553e8d0183a11f Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Tue, 6 Nov 2018 09:42:17 -0300 Subject: [PATCH] [headless] Use --user for websocket example request The authentication token can contain slashes. When used as part of the URL, the URL becomes invalid. Therefore, using curl's user parameter is preferrable. --- briar-headless/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/briar-headless/README.md b/briar-headless/README.md index c4e1cdf60..83c067306 100644 --- a/briar-headless/README.md +++ b/briar-headless/README.md @@ -171,7 +171,8 @@ You can test connecting to the websocket with curl: --header "Upgrade: websocket" \ --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ --header "Sec-WebSocket-Version: 13" \ - http://DZbfoUie8sjap7CSDR9y6cgJCojV+xUITTIFbgtAgqk=@127.0.0.1:7000/v1/ws + --user "DZbfoUie8sjap7CSDR9y6cgJCojV+xUITTIFbgtAgqk=" + http://127.0.0.1:7000/v1/ws The headers are only required when testing with curl. Your websocket client will most likely add these headers automatically.