fix routing bug that generates 404 response. #16

(caused by bad logic for matching contiguous same-prefix routes)