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