Closed kanwei closed 6 years ago
How did the data get encoded earlier? Do you have a csv-format for Muuntaja?
I just use this in the middleware:
(muuntaja/wrap-params)
(muuntaja/wrap-format)
It seems to coerce the piped-input-stream to an actual output. In alpha-23 no data is returned at all.
That muuntaja change shoudn't affect it. With default configuration, Muuntaja doesn't touch the body if it's a stream, the Streaming of InputStream is handled by the Ring Adapter.
So I think that the problem is somewhere else. Do you have :return
or :responses
defined for that route? The same code works with the previous version?
You're right, I can no longer reproduce this.
Library Version(s)
alpha-23: I see that BREAKING: Don't encode response :body if Content-Type header is set.
Problem
We have an endpoint that returns a CSV as a stream:
This now returns nothing. How are we now supposed to add the content-type but still getting through the encoding stack?