@@ -178,22 +178,22 @@ def no_errors_json_response
178
178
"The application has been restarted since this page loaded, " +
179
179
"or the framework is reloading all gems before each request "
180
180
end
181
- [ 200 , { "Content-Type" => "text/plain ; charset=utf-8" } , [ JSON . dump (
181
+ [ 200 , { "Content-Type" => "application/json ; charset=utf-8" } , [ JSON . dump (
182
182
error : 'No exception information available' ,
183
183
explanation : explanation ,
184
184
) ] ]
185
185
end
186
186
187
187
def invalid_error_json_response
188
- [ 200 , { "Content-Type" => "text/plain ; charset=utf-8" } , [ JSON . dump (
188
+ [ 200 , { "Content-Type" => "application/json ; charset=utf-8" } , [ JSON . dump (
189
189
error : "Session expired" ,
190
190
explanation : "This page was likely opened from a previous exception, " +
191
191
"and the exception is no longer available in memory." ,
192
192
) ] ]
193
193
end
194
194
195
195
def invalid_csrf_token_json_response
196
- [ 200 , { "Content-Type" => "text/plain ; charset=utf-8" } , [ JSON . dump (
196
+ [ 200 , { "Content-Type" => "application/json ; charset=utf-8" } , [ JSON . dump (
197
197
error : "Invalid CSRF Token" ,
198
198
explanation : "The browser session might have been cleared, " +
199
199
"or something went wrong." ,
0 commit comments