mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 06:44:52 +00:00
The polling controller was requesting turbo_stream format but only an HTML template exists. Fix the Accept header to request text/html and handle both formats in the controller.
This commit is contained in:
@@ -35,7 +35,7 @@ export default class extends Controller {
|
||||
try {
|
||||
const response = await fetch(this.urlValue, {
|
||||
headers: {
|
||||
Accept: "text/vnd.turbo-stream.html",
|
||||
Accept: "text/html",
|
||||
"Turbo-Frame": this.element.id,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user