Skip to content

Commit 14585c3

Browse files
committed
Set requestBody to true by default
1 parent 2f43ccf commit 14585c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wsproxy/websocket_proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func isClosedConnError(err error) bool {
219219
func (p *Proxy) proxy(w http.ResponseWriter, r *http.Request) {
220220
var responseHeader http.Header
221221
var methodType MethodType
222-
var requestBody bool
222+
requestBody := true
223223

224224
// If Sec-WebSocket-Protocol starts with "Bearer", respond in kind.
225225
// TODO(tmc): consider customizability/extension point here.

0 commit comments

Comments
 (0)