fix js fetch headers (##589)

This commit is contained in:
wanghongenpin
2025-09-12 00:36:22 +08:00
parent 22eb6a70eb
commit 07ffeb8e0f
5 changed files with 42 additions and 9 deletions

View File

@@ -112,6 +112,7 @@ class HttpProxyChannelHandler extends ChannelHandler<HttpRequest> {
for (var interceptor in interceptors) {
var response = await interceptor.execute(request!);
if (response != null) {
listener?.onResponse(channelContext, response);
channel.writeAndClose(channelContext, response);
return;
}