ChangbaDevs / KTVHTTPCache

A powerful media cache framework.
MIT License
2.36k stars 436 forks source link

The value of `Content-Encoding` should use `identity` #94

Closed blastmann closed 5 years ago

blastmann commented 5 years ago

NSURLSessionDataTask will decode the response data when response received. So if we pass the original repsonse header of Content-Encoding to AVPlayer, it will cause a decode error.

We should use Content-Encoding=identity instead.