Fix export polling missing template error (#796) (#721)

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:
Dream
2026-02-25 17:09:51 -05:00
committed by GitHub
parent 7e912c1c93
commit 91b79053fd
3 changed files with 17 additions and 2 deletions

View File

@@ -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,
},
});