Skip to content

Commit

Permalink
fix: do not redirect IPNS checks (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Nov 1, 2022
1 parent 10a5c13 commit 79bb51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ipns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class IPNSCheck extends CheckBase implements Checkable {
// Since gateway URLs are hard coded with /ipfs/, we need to parse URLs and override the path to /ipns/.
const gatewayUrl = new URL(this.parent.gateway)
gatewayUrl.pathname = IPNS_PATH_TO_TEST
const testUrl = `${gatewayUrl.href}?now=${now}`
const testUrl = `${gatewayUrl.href}?now=${now}#x-ipfs-companion-no-redirect`
try {
const response = await fetch(testUrl)
if (response.status === 200) {
Expand Down

0 comments on commit 79bb51d

Please sign in to comment.