liberator

ordnungswidrig 2016-02-12T08:14:55.000035Z

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

ordnungswidrig 2016-02-12T08:15:36.000036Z

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

ordnungswidrig 2016-02-12T08:16:27.000037Z

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

2016-02-12T09:42:34.000038Z

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

ordnungswidrig 2016-02-12T09:45:21.000039Z

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

2016-02-12T09:47:54.000040Z

the deprecated wrap-file-info