Close response in proxy.
This commit is contained in:
parent
3497747599
commit
dadaabbabf
|
@ -1029,6 +1029,7 @@ class _ProxyHttpServer {
|
||||||
|
|
||||||
// Pipe response
|
// Pipe response
|
||||||
await originResponse.pipe(request.response);
|
await originResponse.pipe(request.response);
|
||||||
|
await request.response.close();
|
||||||
} on HttpException {
|
} on HttpException {
|
||||||
// We likely are dealing with a streaming protocol
|
// We likely are dealing with a streaming protocol
|
||||||
if (proxyRequest.uri.scheme == 'http') {
|
if (proxyRequest.uri.scheme == 'http') {
|
||||||
|
|
Loading…
Reference in New Issue