@thheller btw, https://github.com/thheller/shadow-http/blob/main/src/main/shadow/http/server/ring.clj#L74 this vector session value case is hit if someone happens to use a handler using for example: ring-defaults → wrap-session & wrap-cookies → set-cookies creates list value https://github.com/ring-clojure/ring/blob/1.15.4/ring-core/src/ring/middleware/cookies.clj#L129-L135
clojure.lang.ExceptionInfo: currently not supporting header vector values {:header "Set-Cookie", :value ("ring-session=x; Path=/; HttpOnly")}
at shadow.http.server.ring$write_ring_response.invokeStatic(ring.clj:74)Spec does indeed say the should string or vectors of string, but then ring itself does use list of strings
fixed.
I didn’t really spend much time on actual ring compatiblity yet. mostly only for stuff shadow-cljs currently uses directly. how did you run into this? custom handler for :dev-http?
Yeah. I don’t usually use it, but reagent-template did happen to use it: https://github.com/reagent-project/reagent-template/blob/master/resources/leiningen/new/reagent/shadow-cljs.edn#L17-L18
right