yeller / yeller_clojure

clojure client for yellerapp.com
http://yellerapp.com/clojure-exception-tracking.html
Eclipse Public License 1.0
8 stars 0 forks source link

Ring middleware doesn't correctly parse referer and user-agent headers #6

Open mveytsman opened 8 years ago

mveytsman commented 8 years ago

The yeller ring middleware looks for the keys "Referer" and "User-Agent" in the request headers (https://github.com/yeller/yeller_clojure/blob/master/src/yeller/clojure/ring.clj#L6-L9)

Ring actually lowecases the header names. See the spec here: https://github.com/mmcgrana/ring/blob/master/SPEC#L83-L86

Yeller should be looking for "referer" and "user-agent".

tonsky commented 8 years ago

@mveytsman I was stumbling across the same issue just today :( @tcrayford any chance we see a release with that change merged?