Skip to content

Commit

Permalink
doc: clarify todos
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jun 7, 2023
1 parent deeabd9 commit d9c7f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/t0115_gateway_dir_listing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,15 @@ func TestDirListingOnSubdomainGateway(t *testing.T) {
),
Contains(
`/ipfs/<a href="//{{host}}/ipfs/{{cid}}">{{cid}}</a>/<a href="//{{host}}/ipfs/{{cid}}/%C4%85">ą</a>/<a href="//{{host}}/ipfs/{{cid}}/%C4%85/%C4%99">ę</a>`,
u.Host, // TODO: That looks wrong, we link without considering the subdomain
u.Host, // We don't have a subdomain here which prevents issues with normalization and cidv0
root.Cid(),
),
Contains(
`<a href="/%C4%85/%C4%99/file-%C5%BA%C5%82.txt">file-źł.txt</a>`,
),
Contains(
`<a class="ipfs-hash" translate="no" href="//{{host}}/ipfs/{{cid}}?filename=file-%25C5%25BA%25C5%2582.txt">`,
u.Host, // TODO: That looks wrong, we link without considering the subdomain?
u.Host, // We don't have a subdomain here which prevents issues with normalization and cidv0
file.Cid(),
),
)),
Expand Down

0 comments on commit d9c7f49

Please sign in to comment.