From 3f9ff5a8141e9f92057e2527992b67ff62e2aece Mon Sep 17 00:00:00 2001 From: Jay Ohms Date: Thu, 28 Mar 2024 12:21:25 -0400 Subject: [PATCH] Add comment clarifying status codes --- turbo/src/main/assets/js/turbo_bridge.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/turbo/src/main/assets/js/turbo_bridge.js b/turbo/src/main/assets/js/turbo_bridge.js index bd4f61af..ff439f61 100644 --- a/turbo/src/main/assets/js/turbo_bridge.js +++ b/turbo/src/main/assets/js/turbo_bridge.js @@ -179,6 +179,8 @@ // Private async fetchFailedRequestCrossOriginRedirect(visit, statusCode) { + // Non-HTTP status codes are sent by Turbo for network + // failures, including cross-origin fetch redirect attempts. if (statusCode <= 0) { try { const response = await fetch(visit.location, { redirect: "follow" })