ring-clojure / ring-json

Ring middleware for handling JSON
313 stars 47 forks source link

wrap-json-response now preserves Content-Type if already set #5

Closed aviflax closed 11 years ago

aviflax commented 11 years ago

My app sets the response header Content-Type and includes a parameter in the header value. Before this change, my header was being overwritten. This preserves the header if it’s already been set (it already exists in the response :headers map).