Jim Pick
b6d5ea629b
Make websocket connection upgrade header check case-insensitive
...
I was having troubles configuring an nginx reverse-proxy when
using Websockets.
It turns out my configuration was sending a "Connection: upgrade"
header, but Lotus expected "Connection: Upgrade".
This commit converts the check to be case-insensitive.
Some of the examples on the MDN page show lower-case "upgrade",
so I think it's not unusual for the usage to vary.
2020-03-13 13:07:39 -07:00
whyrusleeping
86deb7528c
fix websocket closing again
2019-10-08 17:29:37 +09:00
Łukasz Magiera
e430f86b69
pond: Basic message display in Block window
2019-08-09 19:32:46 +02:00
Łukasz Magiera
7ec9d45915
gofmt
2019-07-25 14:54:19 +02:00
Łukasz Magiera
93a8ee11db
jsonrpc: Work with browsers
2019-07-24 19:09:00 +02:00
Łukasz Magiera
81d7c30fac
Couple lint fixes
2019-07-24 03:16:17 +02:00
Łukasz Magiera
fa4bf5178a
auth: Restructure for getting tokens form keystore
2019-07-24 00:37:05 +02:00
Łukasz Magiera
c0f3bdbb61
jsonrpc: verify jwt tokens
2019-07-24 00:37:05 +02:00
Łukasz Magiera
265302f4aa
Implement API-level auth
2019-07-24 00:36:19 +02:00
Łukasz Magiera
9b3ae45f61
jsonrpc: Break handleWsConn into smaller functions
2019-07-23 03:45:10 +02:00
Łukasz Magiera
2f0a088b18
jsonrpc: Move ws handler state to a struct
2019-07-23 03:20:48 +02:00
Łukasz Magiera
ff4d1b5819
jsonrpc: Channel support
2019-07-23 02:40:01 +02:00
Łukasz Magiera
661043f5c8
Lint fixes
2019-07-15 18:34:55 +02:00
Łukasz Magiera
1153f050bb
Context cancellation over websockets
2019-07-15 18:21:48 +02:00
Łukasz Magiera
6a20d0dafe
jsonrpc: Websocket server
2019-07-12 19:12:38 +02:00