mirror of
https://github.com/status-im/news.git
synced 2025-02-21 08:08:12 +00:00
fix empty path
This commit is contained in:
parent
914f997a98
commit
55d3214c57
@ -207,7 +207,8 @@ proc newWebSocket*(url: string, headers: StringTableRef = nil,
|
||||
var urlPath = uri.path
|
||||
if uri.query.len > 0:
|
||||
urlPath.add("?" & uri.query)
|
||||
|
||||
if urlPath.len == 0:
|
||||
urlPath = "/"
|
||||
let secKey = encode($genOid())[16..^1]
|
||||
let requestLine = &"GET {urlPath} HTTP/1.1"
|
||||
let predefinedHeaders = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user