View Task #543
Summary: Decline unslashed directory path even when decline_dirs=0
| Difficulty:
1 |
|
Version goal:
1.3x |
|
| Status:
Unassigned |
|
Suggested by:
David Wheeler |
|
Description
Apache's mod_dir adds a slash to the end of a URI (via a 301 redirect) when the URI resolves to a directory. This behavior is prevented when Mason's decline_dirs=0. Should always decline directories with no ending slash so that slash can be added, regardless of decline_dirs setting:
return DECLINED if $r->content_type eq DIR_MAGIC_TYPE && $r->uri !~ m{/$};
History
| May 23, 2004 07:36 AM |
|
Jonathan Swartz created task.
|
| Oct 27, 2004 06:52 AM |
|
Jonathan Swartz changed version_goal from 1.3x to 1.3.
|
| Dec 12, 2004 05:59 AM |
|
Jonathan Swartz changed version_goal from 1.3 to 1.3x.
|
| Dec 14, 2004 09:38 AM |
|
Jonathan Swartz
writes: This has changed to
return DECLINED if $fs_type eq 'dir'
&& ($self->decline_dirs || $r->uri !~ m{/$});
|