I'm going to take a wild guess and say: missing wrap-content-type middleware
perhaps?

On Mon, 4 May 2015 at 20:37 Fluid Dynamics <a2093...@trbvm.com> wrote:

> On Monday, May 4, 2015 at 3:21:19 PM UTC-4, clifford wrote:
>>
>> Thanks @fluiddynamics your right on the money.
>>
>> On Monday, 4 May 2015 17:34:26 UTC+2, clifford wrote:
>>>
>>> Hi
>>>
>>> I am using juxt/bidi for route matching.
>>>
>>> with the following routes:
>>>
>>>> (def routes ["/" {"index.html" :index
>>>>                         "articles/" {"index.html" :article-index
>>>>                                      [:id] :article}}])
>>>
>>>
>>> It correctly matches at the REPL.
>>>
>>>> (match-route routes "/articles/4")
>>>> => {:handler :article, :route-params {:id "4"}}
>>>
>>>
>>> However in the browser, when I hit the url, localhost:3000/articles/4
>>> It attempts to download a file with name "4", can anybody let me know
>>> what I'm doing wrong here?
>>>
>>> Clifford
>>>
>>
> YW. Now, just to satisfy the curious (and maybe help anyone else who runs
> into a similar problem): what was causing the Content-Type not to be
> correct?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to