Skip to content

Commit

Permalink
test: avoid joinUrlSegments, align with prev test
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Sep 17, 2024
1 parent 3192244 commit 7d78ae7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions playground/fs-serve/root/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,7 @@ <h2>Denied</h2>
})

// not imported before, outside of root, treated as unsafe
fetch(
joinUrlSegments(
base,
joinUrlSegments('/@fs/', ROOT) + '/unsafe.json?import&raw',
),
)
fetch('/@fs/' + ROOT + '/unsafe.json?import&raw')
.then((r) => {
text('.unsafe-fs-fetch-raw-status', r.status)
return r.json()
Expand Down

0 comments on commit 7d78ae7

Please sign in to comment.