提交 c6b37e6e 作者: Ivan 提交者: Jeromy Johnson

Allow the use of the Range header in WebTorrent (#3929)

* Allow the use of the Range header in WebTorrent

License: MIT
Signed-off-by: Ivan386

* Allow the use of the Range header in WebTorrent

License: MIT
Signed-off-by: 's avatarIvan <ivan386@users.noreply.github.com>
上级 18d2a2d8
...@@ -65,7 +65,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) { ...@@ -65,7 +65,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
HTTPHeaders: map[string][]string{ HTTPHeaders: map[string][]string{
"Access-Control-Allow-Origin": []string{"*"}, "Access-Control-Allow-Origin": []string{"*"},
"Access-Control-Allow-Methods": []string{"GET"}, "Access-Control-Allow-Methods": []string{"GET"},
"Access-Control-Allow-Headers": []string{"X-Requested-With"}, "Access-Control-Allow-Headers": []string{"X-Requested-With", "Range"},
}, },
}, },
Reprovider: Reprovider{ Reprovider: Reprovider{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论