mirror of
https://github.com/unclebob/more-speech.git
synced 2024-09-30 02:21:02 +00:00
add header to websocket so that relay.snort.social will connect.
This commit is contained in:
parent
9d31c8f11c
commit
3a272fdda8
@ -67,6 +67,7 @@
|
||||
(try
|
||||
(let [client (HttpClient/newHttpClient)
|
||||
cl (.newWebSocketBuilder client)
|
||||
cl (.header cl "origin" "more-speech")
|
||||
cws (.buildAsync cl (URI/create url) (->listener (StringBuffer.) relay))
|
||||
wsf (future (.get cws))
|
||||
ws (deref wsf 30000 :time-out)]
|
||||
|
Loading…
Reference in New Issue
Block a user