go-ipfs-config: hard code things
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Nov 30, 2015 at 14:43 UTC
8c25058225ff72b5fc88728cd5c091af11a603aa
1 file changed
-18
config/init.go
-18
@@ -44,16 +44,6 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
44
API: "/ip4/127.0.0.1/tcp/5001",
45
Gateway: "/ip4/127.0.0.1/tcp/8080",
46
},
47
- API: API{
48
- HTTPHeaders: map[string][]string{
49
- "Access-Control-Allow-Headers": []string{
50
- "X-Stream-Output, X-Chunked-Output",
51
- },
52
- "Access-Control-Expose-Headers": []string{
53
- "X-Stream-Output, X-Chunked-Output",
54
- },
55
- },
56
- },
47
48
Bootstrap: BootstrapPeerStrings(bootstrapPeers),
49
SupernodeRouting: *snr,
@@ -81,14 +71,6 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
71
Gateway: Gateway{
72
RootRedirect: "",
73
Writable: false,
84
- HTTPHeaders: map[string][]string{
85
- "Access-Control-Allow-Headers": []string{
86
- "X-Stream-Output, X-Chunked-Output",
87
- },
88
- "Access-Control-Expose-Headers": []string{
89
- "X-Stream-Output, X-Chunked-Output",
90
- },
91
- },
74
},
75
}
76