Fork me on GitHub
#liberator
<
2016-02-12
>
ordnungswidrig08:02:55

@rickmoynihan: I would expect the wrap-file-info to keep an existing content-type header untouched.

ordnungswidrig08:02:36

"This middleware is deprecated. Prefer the ring.middleware.content-type and ring.middleware.not-modified middleware instead."

ordnungswidrig08:02:27

wrap-content-type behaves sane and does not touch the response when there is a content-type header set.

rickmoynihan09:02:34

@ordnungswidrig: it doesn't if you return a file as :body - if you return anything else e.g.a string it preserves it

ordnungswidrig09:02:21

which „it“? wrap-file-info or wrap-content-type? simple_smile

rickmoynihan09:02:54

the deprecated wrap-file-info