Fixed ExoPlayer's seeking with proxy enabled (#212)

This commit is contained in:
Sergio Tikhonov 2020-10-19 03:54:56 +03:00 committed by GitHub
parent 9b5a82fd16
commit c2e5dcd93a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1035,6 +1035,7 @@ class _ProxyHttpServer {
originResponse.headers.forEach((name, value) { originResponse.headers.forEach((name, value) {
request.response.headers.set(name, value); request.response.headers.set(name, value);
}); });
request.response.statusCode = originResponse.statusCode;
// Pipe response // Pipe response
await originResponse.pipe(request.response); await originResponse.pipe(request.response);