From 08255bcd915fcdee98ac4cc5f729d5c48d49f261 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 10 Jun 2017 05:56:56 +0300 Subject: [PATCH] go-ipfs-config: 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: Ivan --- config/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/init.go b/config/init.go index 0538826f6..5b17011da 100644 --- a/config/init.go +++ b/config/init.go @@ -65,7 +65,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) { HTTPHeaders: map[string][]string{ "Access-Control-Allow-Origin": []string{"*"}, "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{