In DirectoryResource, there's code that sets directorRedirection if the directory's URI doesn't end in '/' so that, when a request comes in for a directory and it doesn't end in '/', the server will issue a 303 response.

1. How do I turn directory redirection off? Specifically, if the request refers to a directory and the URI doesn't end in '/', it's OK for the server to add the '/' internally for processing, but I don't want it to issue a 303 response.

2. Even if I wanted to keep the redirection the way it is, the Location header is wrong. For a URL like:

        /foo/bar

I get back:

        Location: file:///disk/user/foo/bar/

The Location should be:

        Location: http://foo/bar/

i.e., it should never return file URLs. Why is it doing that and how can I get it to return what I would want?

- Paul

P.S.: This is using restlet 1.0.7.

Reply via email to