File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 37
37
nokogiri (>= 1.5.9 )
38
38
method_source (1.0.0 )
39
39
minitest (5.14.4 )
40
+ nokogiri (1.12.3-arm64-darwin )
41
+ racc (~> 1.4 )
40
42
nokogiri (1.12.3-x86_64-darwin )
41
43
racc (~> 1.4 )
42
44
nokogiri (1.12.3-x86_64-linux )
63
65
zeitwerk (2.4.2 )
64
66
65
67
PLATFORMS
68
+ arm64-darwin-21
66
69
x86_64-darwin-18
67
70
x86_64-linux
68
71
Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ class FetchRequest {
133
133
if ( response . unauthenticated && response . authenticationURL ) {
134
134
return Promise . reject ( window . location . href = response . authenticationURL ) ;
135
135
}
136
- if ( response . ok && response . isTurboStream ) {
136
+ const responseStatusIsTurboStreamable = response . ok || response . unprocessableEntity ;
137
+ if ( responseStatusIsTurboStreamable && response . isTurboStream ) {
137
138
await response . renderTurboStream ( ) ;
138
139
}
139
140
return response ;
@@ -159,7 +160,7 @@ class FetchRequest {
159
160
headers : this . headers ,
160
161
body : this . formattedBody ,
161
162
signal : this . signal ,
162
- credentials : "same-origin" ,
163
+ credentials : this . credentials ,
163
164
redirect : this . redirect
164
165
} ;
165
166
}
@@ -232,6 +233,9 @@ class FetchRequest {
232
233
get redirect ( ) {
233
234
return this . options . redirect || "follow" ;
234
235
}
236
+ get credentials ( ) {
237
+ return this . options . credentials || "same-origin" ;
238
+ }
235
239
get additionalHeaders ( ) {
236
240
return this . options . headers || { } ;
237
241
}
You can’t perform that action at this time.
0 commit comments