This enables `go get` to parse go-import meta tags from index.html
files stored in IPFS. One tiny step toward whyrusleeping/gx-go#2.
For an import like `ipfs.io/ipfs/QmFoo/mypkg`, the gateway would
previously redirect to `/ipfs/QmFoo/mypkg/` (note the trailing slash),
which the `go get` tool can't deal with.
Thankfully, `go get` sets a URL query parameter (`?go-get=1`) which
we can use to switch off the redirect in this case.
License: MIT
Signed-off-by:
Lars Gierth <larsg@systemli.org>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| commands.go | 正在载入提交数据... | |
| corehttp.go | 正在载入提交数据... | |
| gateway.go | 正在载入提交数据... | |
| gateway_handler.go | 正在载入提交数据... | |
| gateway_indexPage.go | 正在载入提交数据... | |
| gateway_test.go | 正在载入提交数据... | |
| ipns_hostname.go | 正在载入提交数据... | |
| logs.go | 正在载入提交数据... | |
| metrics.go | 正在载入提交数据... | |
| metrics_test.go | 正在载入提交数据... | |
| redirect.go | 正在载入提交数据... | |
| webui.go | 正在载入提交数据... |