Merge pull request #5424 from swedneck/gateway-version-fix

move VersionOption after GatewayOption to fix #5422
This commit is contained in:
Steven Allen 2018-09-06 17:48:21 +00:00 committed by GitHub
commit bacb5b004d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -542,11 +542,11 @@ func serveHTTPGateway(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, e
var opts = []corehttp.ServeOption{
corehttp.MetricsCollectionOption("gateway"),
corehttp.CheckVersionOption(),
corehttp.CommandsROOption(*cctx),
corehttp.VersionOption(),
corehttp.IPNSHostnameOption(),
corehttp.GatewayOption(writable, "/ipfs", "/ipns"),
corehttp.VersionOption(),
corehttp.CheckVersionOption(),
corehttp.CommandsROOption(*cctx),
}
if len(cfg.Gateway.RootRedirect) > 0 {