Close response in proxy.

This commit is contained in:
Ryan Heise 2020-11-15 19:29:07 +11:00
parent 3497747599
commit dadaabbabf
1 changed files with 1 additions and 0 deletions

View File

@ -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') {