Closed digitalmoksha closed 5 years ago
Thanks for the clear issue description and PR. 👍
Should be resolved in master, as of 8bf49a36707d808b180d923206ea3d0260a5bbf3
Thanks @cactus, really appreciate it! Any possibility of getting it cut into a release, as it will get rolled into production.
sure. no problem.
Specifications
Version: go-camo 1.1.4-9-g4369d52 (go1.12.4,gc-amd64) Platform: macOS 10.14.5
Expected Behavior
Visiting a proxied video in Safari should display properly
Actual Behavior
The video does not display, we always get a
write: broken pipe
. Here is the log output:Steps to reproduce
Visit a proxied URL, such as
http://mirrors.standaloneinstaller.com/video-sample/small.mp4
. Safari will be unable to show the video. Chrome and Firefox can (as long as the-H "Content-Security-Policy: media-src 'self'"
option is used).The problem seems to stem from Safari requiring support for byte ranges. You can take a look at Configuring Your Server. This talks about iOS but it's the same for safari on macOS.
I'm able to get it working by adding
to
ValidRespHeaders
andto
ValidReqHeaders
.We also have to allow the
206
status code.I'll try to get a PR submitted, though my Go skills are minimal right now.