[Haskell-cafe] Happstack routing + boomerang + non-ascii urls
jeremy at n-heptane.com
Tue Mar 27 16:47:29 CEST 2012
That is concerning and mysterious.
In Web.Routes.Happstack we do:
> let f = runSite (domain `Text.append` approot) siteSpec (map
Text.pack $ rqPaths rq)
so, boomerang should be using the properly decoded rqPaths from the
Happstack Request. Not sure where things are going wrong. I'll look at it
soon, when I get a chance.
On Tue, Mar 27, 2012 at 8:17 AM, Semen Trygubenko <semen at trygub.com> wrote:
> Dear Haskell-Cafe,
> Last weekend I was test driving Web.Routes.Boomerang. A
> great package … Is there any way I could make it work with
> urls containing non-ASCII characters?
> Happstack.Server routing using "path" handles non-ASCII,
> as in, for instance,
> dir "work" $ path $ workHandler ,
> where workHandler gets a correctly decoded path segment
> passed in as a String. The following, however,
> sitemap :: Router Sitemap
> sitemap = (
> rWork . anyString
> passes to Work constructor an incorrectly decoded String.
> All the plumbing re embedding boomerang route into a normal
> Happstack one, etc. is done as per example from crash course
> Many thanks,
> Семен Тригубенко
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> -----END PGP SIGNATURE-----
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe