Skip to content

Commit b3d730b

Browse files
committed
g
1 parent 7598a01 commit b3d730b

2 files changed

Lines changed: 59 additions & 26 deletions

File tree

worker/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,9 +1395,9 @@ export default {
13951395
// richiesta, non quello scritto nella destinazione. Quindi rispondiamo sia sul nostro
13961396
// percorso sia su quello pubblico della webapp. (Scoperto il 22/08 con un 404 del Worker
13971397
// che sembrava un 404 di Vercel: il corpo era il nostro, 46 byte.)
1398-
if ((url.pathname === "/x402/attestation" || url.pathname === "/api/x402/attestation" || url.pathname === "/prova-bordo-x402")
1399-
&& (request.method === "GET" || request.method === "HEAD")) {
1400-
return x402StaticChallenge(request);
1398+
if ((request.method === "GET" || request.method === "HEAD")) {
1399+
const edge = x402StaticChallenge(request);
1400+
if (edge) return edge;
14011401
}
14021402
if (url.pathname === "/log/checkpoint" && request.method === "GET") {
14031403
const st = await rlogStatus(env);

0 commit comments

Comments
 (0)