[Fwd: [hunchentoot-devel] Having trouble with create-folder-dispatcher-and-handler]

Cunningham, Jeff jeffrey.k.cunningham at boeing.com
Mon Dec 17 17:56:06 UTC 2007


 > Can you please try with the attached patch?

>
> Thanks,
> Hans
>
/>
/> -------------- next part --------------
> Index: misc.lisp
> ===================================================================
> --- misc.lisp	(revision 2282)
> +++ misc.lisp	(working copy)
> @@ -180,7 +180,10 @@
>  (defun enough-url (url url-prefix)
>    "Returns the relative portion of URL relative to URL-PREFIX, similar
>  to what ENOUGH-NAMESTRING does for pathnames."
> -  (subseq url (mismatch url url-prefix)))
> +  (let ((start (mismatch url url-prefix)))
> +    (if start
> +        (subseq url start)
> +        "")))
>  
>  (defun create-folder-dispatcher-and-handler (uri-prefix base-path &optional content-type)
>    "Creates and returns a dispatch function which will dispatch to a


I tried the patch. It is still does not work, but the error message changes to:

Bad Request

Your browser sent a request that this server could not understand.

--Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20071217/da39453d/attachment.html>


More information about the Tbnl-devel mailing list