duct-framework / duct

Server-side application framework for Clojure
MIT License
1.13k stars 51 forks source link

(:query-params request) not keywordized? #111

Open macalimlim opened 1 year ago

macalimlim commented 1 year ago

The title says it all. the result map I get from (:query-params request) is not keywordized. Should this be keywordized by default?

weavejester commented 1 year ago

The wrap-keywords middleware only keywordizes :params. This is so that you can access the parameters conveniently via :params, but access them more exactly via :query-params (and :form-params).

macalimlim commented 1 year ago

Just curious, what is the reason why (:query-params) is not keywordized by default?