Thanks for testing. This needs to be fixed. I've entered a report: http://restlet.tigris.org/issues/show_bug.cgi?id=370
Best regards, Jerome > -----Message d'origine----- > De : Rob Heittman [mailto:[EMAIL PROTECTED] > Envoyé : mardi 9 octobre 2007 23:36 > À : discuss@restlet.tigris.org > Objet : Re: Index files don't work with Directory and clap:// > > > Nope, this doesn't work: > > Directory d = new Directory(getContext(), > "clap://thread/client-bin"); > d.setNegotiateContent(false); > d.setIndexName("index.html"); > guard1.setNext(d); > > Though this does: > > Directory d = new Directory(getContext(), > "file://home/imaginary/build/dir/client-bin"); > d.setNegotiateContent(false); > d.setIndexName("index.html"); > guard1.setNext(d); > > - Rob > > ----- Original Message ----- > From: "Jerome Louvel" <[EMAIL PROTECTED]> > To: discuss@restlet.tigris.org > Sent: Tuesday, October 9, 2007 3:41:05 PM (GMT-0500) America/New_York > Subject: RE: Index files don't work with Directory and clap:// > > > Rob, > > > Yes. I think simply being able to specify "index.html" > > instead of "index" > > and turn off content negotiation is what I want here. So, if I set > > negotiateContent to false and indexName to "index.html," that should > > do the trick already, or do I need to do some surgery first? > > My guess is that should work directly. Otherwise we'll make > it work this way > :) > > Best regards, > Jerome > >