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

Hans Hübner hans at huebner.org
Mon Dec 17 18:05:36 UTC 2007


The change to enough-url modifies it so that it behaves the same as
enough-namestring (which was previously used) does.  What I am not
sure about is whether the create-folder-dispatcher-and-handler
dispatcher and handler can handle an empty path.  What you'd propably
want to see is a directory listing?  Can you fetch files if you
specify the complete URL?

-Hans

On Dec 17, 2007 6:56 PM, Cunningham, Jeff
<jeffrey.k.cunningham at boeing.com> wrote:
>
>  > 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
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>



More information about the Tbnl-devel mailing list