go-ipfs-config: Allow the use of the User-Agent header

License: MIT
Signed-off-by: Ivan <ivan386@users.noreply.github.com>
This commit is contained in:
Ivan 2018-10-14 21:32:55 +02:00 committed by GitHub
parent 765faf504e
commit 1ca5f8e640

View File

@ -64,7 +64,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", "Range"},
"Access-Control-Allow-Headers": []string{"X-Requested-With", "Range", "User-Agent"},
},
APICommands: []string{},
},