if ($code eq '') {
$code = HTTP_STATUS->{'found'};
}
+ # https://insanecoding.blogspot.com/2014/02/http-308-incompetence-expected.html
# 301 Moved Permanently
# 302 Found
# 303 See Other
if ($show_command) {
$frame_data->{'command'} = $command;
}
- if ($context->{'access'}) {
+ if ($access) {
$frame_data->{'frame'} = $frame_file;
}
+ if ($frame_data->{'page'} eq '') {
+ unless (($access) && ($frame < $last_frame)) {
+ $frame_data->{'page'} = '';
+ }
+ elsif ($frame == 0) {
+ $frame_data->{'page'} = 'index.htm';
+ }
+ else {
+ $frame_data->{'page'} = sprintf(
+ $settings->{'frame'},
+ $frame, 'htm'
+ );
+ }
+ }
}
# everything determined, now start generating