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 <ivan386@users.noreply.github.com>
This commit is contained in:
Ivan 2017-06-10 05:56:56 +03:00 committed by Jeromy Johnson
parent 90b6d80f5d
commit 08255bcd91

View File

@ -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{