Import query from library changes content-type

I'm importing a query from the Query Library with Content-Type: application/json in the Headers. When triggering the query from an app, inspect shows metadata.headers.content-type: "text/html". Indeed, the query fails in the backend. Other than that, all looks good with the query.

image

image

Is there a way to keep the content type of the original query? Thanks

Hey @noa_cohen! Just tested this out, and the request does seem to have the header set in the QL. Based on that screenshot, you may be looking at the headers for the response received.

Can you check out the query.metadata.request.headers in the state tab and let me know if it's not the expected application/json value?