0.34.6_repo_cleanup
This commit is contained in:
1 parent
ce1a90397c
commit
133d2f0f91
273 files changed
+5969
-6926
No files matched your search
@@ -23,8 +23,6 @@ fn parse_file(path: &Path, components: Vec<String>, config: &Config) -> Result<(
|
||||
continue;
|
||||
}
|
||||
if state.in_files_block != 0 {
|
||||
// RustProxy always blocks .htaccess/.htpasswd directly. More general Files/FilesMatch
|
||||
// access semantics remain intentionally outside the compatibility subset.
|
||||
continue;
|
||||
}
|
||||
let parts = tokens(line).with_context(|| format!("{}:{line_no}", path.display()))?;
|
||||
@@ -37,7 +35,6 @@ fn parse_file(path: &Path, components: Vec<String>, config: &Config) -> Result<(
|
||||
if !state.rewrite_engine { state.pending_conditions.clear(); state.skip_next_rule = false; }
|
||||
}
|
||||
"rewritebase" => {
|
||||
// Per-directory substitutions are already resolved relative to the containing scope.
|
||||
}
|
||||
"rewritecond" if state.rewrite_engine => {
|
||||
condition_count += 1;
|
||||
@@ -79,7 +76,7 @@ fn parse_file(path: &Path, components: Vec<String>, config: &Config) -> Result<(
|
||||
for option in &parts[1..] {
|
||||
if option.eq_ignore_ascii_case("+Indexes") || option.eq_ignore_ascii_case("Indexes") { scope.directory_listing = Some(true); }
|
||||
else if option.eq_ignore_ascii_case("-Indexes") { scope.directory_listing = Some(false); }
|
||||
else if option.eq_ignore_ascii_case("-MultiViews") { /* RustProxy has no content negotiation; already effectively off. */ }
|
||||
else if option.eq_ignore_ascii_case("-MultiViews") { }
|
||||
else { unsupported(&mut state, config, path, line_no, format!("unsupported Options token {option}"))?; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user