Gateway: handleSuperfluousNamespace
doesn't work with Hostnames
#344
Labels
P2
Medium: Good to have, but can wait until someone steps up
topic/gateway
Issues related to HTTP Gateway
When the gateway is wrapped with the Hostname Handler, the superfluous namespace redirect doesn't work. This is because HostnameHandler will immediately say that the path is invalid. I suspect this may be happening with other things. It has probably happened before, but we've never noticed.
Solutions:
/ipfs/ipfs
or/ipfs/ipns
and do the redirect. Do not do path validation. That will happen after redirection anyways. Then add it to the Hostname handler again.The text was updated successfully, but these errors were encountered: