Skip to content

Commit

Permalink
Merge pull request #5424 from swedneck/gateway-version-fix
Browse files Browse the repository at this point in the history
move VersionOption after GatewayOption to fix #5422
  • Loading branch information
Stebalien authored Sep 6, 2018
2 parents 2dca8c2 + a86fea9 commit bacb5b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bacb5b0

Please sign in to comment.