Skip to content

Commit b9d28ec

Browse files
committed
ProxyAccept now handles server-speak-first protocols well
1 parent 832e1be commit b9d28ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/filters/tcp/ProxyAccept.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function () {
2525
$ctx.originalTarget = req.head.path
2626
return new Message({ status: 200 })
2727
}
28-
).to($=>$.pipeNext())
28+
).to($=>$.onStart(new Data).pipeNext())
2929
),
3030
'forward': ($=>$
3131
.handleMessageStart(
@@ -47,7 +47,7 @@ export default function () {
4747
$ctx.originalTarget = `${req.domain || req.ip}:${req.port}`
4848
return true
4949
}
50-
).to($=>$.pipeNext())
50+
).to($=>$.onStart(new Data).pipeNext())
5151
)
5252
}
5353
)

0 commit comments

Comments
 (0)