yada

borkdude 2019-10-15T15:00:38.008500Z

if I want to return a file response, I can just return a file as the return value, but how do I set the name if I want to change it?

borkdude 2019-10-15T15:08:03.008800Z

I now did it like this:

(-> resp
                            (assoc :body file)
                            (assoc-in [:headers "Content-Disposition"] "attachment; filename=\"filename.jpg\""))

dominicm 2019-10-15T15:33:25.009Z

That's right.

dominicm 2019-10-15T15:33:36.009400Z

Would be cool to have a data description for that kind of thing.

dominicm 2019-10-15T15:34:06.010300Z

That would be a pretty neat extension to a content negotiation system, something higher level which could generate headers or cookies.

borkdude 2019-10-15T15:51:38.010500Z

https://github.com/juxt/apex -> 404 😛

dominicm 2019-10-15T16:13:56.010800Z

Hmm?

borkdude 2019-10-15T16:16:13.011300Z

never mind

dominicm 2019-10-15T16:27:31.011500Z

;)