ipfs/kubo

Add flag to ignore `index.html` resolution in gateway

Open

#8,265 创建于 2021年7月16日

在 GitHub 查看
 (4 评论) (3 反应) (0 负责人)Go (2,725 fork)batch import
P3effort/hourshelp wantedkind/enhancementtopic/gateway

仓库指标

Star
 (13,906 star)
PR 合并指标
 (平均合并 4天 2小时) (30 天内合并 28 个 PR)

描述

At the moment, if I want to do a directory listing using an HTTP request to a gateway, I cannot do anything if there is an index.html file inside a given path.

It would be nice to be able to specify a flag in the querystring (eg, ?noResolve) to skip the resolution of index.html and to do a regular directory read.

This is something I've played with a bit in js-ipfs-fetch using a custom header, but that doesn't play well with CORS and I've since learned that querystrings are much more reliable/ usable (in hypercore-fetch).

Is this something that could be considered for addition?

贡献者指南