On Jul 10, 3:56 am, "~flow" <[EMAIL PROTECTED]> wrote:
> i have a view method that expects a <path:> parameter ::
>
> @expose( '/find/<path:q>' )
> def find( request, q = '' ):
>
> where [EMAIL PROTECTED] is essentially the decorator method defined in
> ``werkzeug/examples/shorty/utils.py``. now according to the docs,
> ``q`` should match any route, including one with slashes, and it
> does---except when two or more slashes follow each at the end of the
> URL other without any intervening material, meaning that ::
>
> http://xxx/find/foo/bar/baz
>
> and ::
>
> http://xxx/find/foo/
>
> and even ::
>
> http://xxx/find/foo//bar
>
> work as advertised, but ::
>
> http://xxx/find/foo//
>
> fails with an HTTP 404. i haven't found a way to fix that. any
> suggestions?
Hmmm, normally web servers would normalise the SCRIPT_NAME/PATH_INFO
and you wouldn't see repeating slashes. They can still appear in
REQUST_URI, but not sure that WSGI applications should use that.
What hosting solution are you using?
What are the values for all three variables when passed through?
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---