juxt / bidi

Bidirectional URI routing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bidi vhosts matches on incorrect scheme

SevereOverfl0w opened this issue · comments

With 2 separate vhost routes, for the same host, but with different schemes, bidi will match on both sets of routes. But should only match on one.

This looks suspicious as it is missing a reference to the scheme:

(when (some (fn [vh] (or (= vh :*) (= (:host vh) (:host vhost)))) vhosts)