Fixed ExoPlayer's seeking with proxy enabled (#212)
This commit is contained in:
parent
9b5a82fd16
commit
c2e5dcd93a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue