Skip to content

Commit bacb5b0

Browse files
authored
Merge pull request #5424 from swedneck/gateway-version-fix
move VersionOption after GatewayOption to fix #5422
2 parents 2dca8c2 + a86fea9 commit bacb5b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/ipfs/daemon.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,11 @@ func serveHTTPGateway(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, e
542542

543543
var opts = []corehttp.ServeOption{
544544
corehttp.MetricsCollectionOption("gateway"),
545-
corehttp.CheckVersionOption(),
546-
corehttp.CommandsROOption(*cctx),
547-
corehttp.VersionOption(),
548545
corehttp.IPNSHostnameOption(),
549546
corehttp.GatewayOption(writable, "/ipfs", "/ipns"),
547+
corehttp.VersionOption(),
548+
corehttp.CheckVersionOption(),
549+
corehttp.CommandsROOption(*cctx),
550550
}
551551

552552
if len(cfg.Gateway.RootRedirect) > 0 {

0 commit comments

Comments
 (0)