You could get rid of the flatten in there by using `coll?` instead, e.g.

```clj
(if (coll? (get-in resp [:headers name))
  (update-in resp [:headers name] conj (str value))
  (assoc-in resp [:headers name] (str value)))
```