Skip to content

Commit 8736ffc

Browse files
committed
chore: deprecate Gateway.PathPrefixes
Context: ipfs/kubo#7702 (comment) This commit was moved from ipfs/kubo@2f105f7
1 parent 774ccd7 commit 8736ffc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gateway/core/corehttp/gateway_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ func (i *gatewayHandler) getOrHeadHandler(w http.ResponseWriter, r *http.Request
159159
// If the gateway is behind a reverse proxy and mounted at a sub-path,
160160
// the prefix header can be set to signal this sub-path.
161161
// It will be prepended to links in directory listings and the index.html redirect.
162+
// TODO: this feature is deprecated and will be removed (https://github.com/ipfs/go-ipfs/issues/7702)
162163
prefix := ""
163164
if prfx := r.Header.Get("X-Ipfs-Gateway-Prefix"); len(prfx) > 0 {
164165
for _, p := range i.config.PathPrefixes {

0 commit comments

Comments
 (0)