add test for punycode

This commit is contained in:
trinity-1686a
2025-05-19 20:36:03 +02:00
parent a605a80806
commit bba9202f31
8 changed files with 87 additions and 12 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ pub async fn handle_create_bucket(
}
// Create the bucket!
if !is_valid_bucket_name(&bucket_name, garage.config.allow_punnycode) {
if !is_valid_bucket_name(&bucket_name, garage.config.allow_punycode) {
return Err(Error::bad_request(format!(
"{}: {}",
bucket_name, INVALID_BUCKET_NAME_MESSAGE