Skip to content

Commit 3f9ff5a

Browse files
committed
Add comment clarifying status codes
1 parent 10ff074 commit 3f9ff5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

turbo/src/main/assets/js/turbo_bridge.js

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
// Private
180180

181181
async fetchFailedRequestCrossOriginRedirect(visit, statusCode) {
182+
// Non-HTTP status codes are sent by Turbo for network
183+
// failures, including cross-origin fetch redirect attempts.
182184
if (statusCode <= 0) {
183185
try {
184186
const response = await fetch(visit.location, { redirect: "follow" })

0 commit comments

Comments
 (0)