ring-swagger

ring-swagger & compojure-api
2019-06-27T12:27:29.011800Z

Oh, ok, thanks

2019-06-27T12:30:14.012Z

I rechecked the code, we do set a content type header...

#(assoc
             (ok %)
             :headers {"content-type" "application/json"})

2019-06-27T12:31:50.012200Z

Oh, if I change the case of that, it seems to work? 😱

2019-06-27T12:33:34.012400Z

Yeah, "Content-Type" works as expected

2019-06-27T12:33:42.012600Z

Thanks!

ikitommi 2019-06-27T13:47:31.012800Z

np. Ring defines that incoming headers are lower-cased, responses are sent as-is. Hitting that often...

2019-06-27T18:04:22.013Z

ooohkay, I'm sure there's a good reason for that 😉