lnrpc: enable RPC middleware in REST WebSockets

If we don't flag the /v1/middleware call as request streaming, it can't
be used properly with REST WebSockets because the proxy would close the
connection after the first request message.
This commit is contained in:
Oliver Gugger 2022-07-06 21:16:55 +02:00
parent af47943f52
commit 66258ee7b5
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -13,6 +13,7 @@ var (
regexp.MustCompile("^/v1/channels/acceptor$"), regexp.MustCompile("^/v1/channels/acceptor$"),
regexp.MustCompile("^/v1/channels/transaction-stream$"), regexp.MustCompile("^/v1/channels/transaction-stream$"),
regexp.MustCompile("^/v2/router/htlcinterceptor$"), regexp.MustCompile("^/v2/router/htlcinterceptor$"),
regexp.MustCompile("^/v1/middleware$"),
} }
// MaxGrpcMsgSize is used when we configure both server and clients to // MaxGrpcMsgSize is used when we configure both server and clients to