Skip to content

Commit

Permalink
Add comment clarifying status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Mar 28, 2024
1 parent 10ff074 commit 3f9ff5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions turbo/src/main/assets/js/turbo_bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" })
Expand Down

0 comments on commit 3f9ff5a

Please sign in to comment.