-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Passing a gateway with a trailing slash causes the program to generate a URI such as gateway/ipfs/path/ipfs/path instead of gateway/ipfs/path, basically duplicating the last two tokens. I observed this behavior with inputs "https://cdn.kleros.link" and "https://cdn.kleros.link/".
This function appears to have a bug.
URI manipulation should be debugged; ideally, we should create tests for URI manipulations to ensure they work and avoid regressions.