Compare commits
11 commits
f01adf2d91
...
1f645830a4
Author | SHA1 | Date | |
---|---|---|---|
1f645830a4 | |||
5f308bd688 | |||
df758e8e0d | |||
e83864af24 | |||
3b49dd9e63 | |||
cd0728cd20 | |||
0951b5db75 | |||
3d94eb8d4b | |||
004866caac | |||
913e6da41b | |||
e4881e62f1 |
1 changed files with 2 additions and 6 deletions
|
@ -371,17 +371,13 @@ impl RequestHandler for UpdateBucketRequest {
|
|||
|
||||
if let Some(wa) = self.body.website_access {
|
||||
if wa.enabled {
|
||||
let (redirect_all, routing_rules) = match state.website_config.get() {
|
||||
Some(wc) => (wc.redirect_all.clone(), wc.routing_rules.clone()),
|
||||
None => (None, Vec::new()),
|
||||
};
|
||||
state.website_config.update(Some(WebsiteConfig {
|
||||
index_document: wa.index_document.ok_or_bad_request(
|
||||
"Please specify indexDocument when enabling website access.",
|
||||
)?,
|
||||
error_document: wa.error_document,
|
||||
redirect_all,
|
||||
routing_rules,
|
||||
redirect_all: None,
|
||||
routing_rules: Vec::new(),
|
||||
}));
|
||||
} else {
|
||||
if wa.index_document.is_some() || wa.error_document.is_some() {
|
||||
|
|
Loading…
Add table
Reference in a new issue