File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,16 @@ class Trustless extends CheckBase implements Checkable {
30
30
}
31
31
) )
32
32
33
- if ( ! trustlessResponseTypesTests . includes ( false ) ) {
33
+ const failedTests = TRUSTLESS_RESPONSE_TYPES . filter ( ( _result , idx ) => ! trustlessResponseTypesTests [ idx ] )
34
+
35
+ if ( failedTests . length === 0 ) {
34
36
this . tag . win ( )
35
37
} else {
36
- log . debug ( 'The response type did not match the expected type' )
37
- this . onerror ( )
38
- throw new Error ( `URL '${ gatewayAndHash } does not support Trustless` )
38
+ const errorMsg = `URL '${ gatewayAndHash } does not support the following Trustless response types: [` +
39
+ `${ failedTests . join ( ', ' ) } ]`
40
+
41
+ log . debug ( errorMsg )
42
+ throw new Error ( errorMsg )
39
43
}
40
44
} catch ( err ) {
41
45
log . error ( err )
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ <h1 class='f3 fw2 montserrat aqua ttu ma0'>Public Gateways</h1>
56
56
< div class ="Status " title ="Online status: is it possible to read data? " style ="cursor: help "> Online</ div >
57
57
< div class ="Cors " title ="Allows Cross-Origin Resource Sharing (CORS fetch) "> < a href ="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers " target ="_blank "> CORS</ a > </ div >
58
58
< div class ="Origin " title ="Provides Origin Isolation (Subdomain Gateway) "> < a href ="https://docs.ipfs.io/how-to/address-ipfs-on-web/#subdomain-gateway " target ="_blank "> Origin</ a > </ div >
59
- < div class ="Trustless " title ="Supports Trustless Gateway Specification "> < a href ="https://github.com/ ipfs/specs/blob/main/http-gateways/TRUSTLESS_GATEWAY.md " target ="_blank "> Trustless </ a > </ div >
59
+ < div class ="Trustless " title ="Supports Trustless Gateway Specification "> < a href ="https://docs. ipfs.tech/reference/http/gateway/#trustless-verifiable-retrieval " target ="_blank "> Block/CAR </ a > </ div >
60
60
< div class ="Flag "> Country</ div >
61
61
< div class ="Link "> Hostname</ div >
62
62
< div class ="Took "> ΔT</ div >
You can’t perform that action at this time.
0 commit comments