mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-08-17 09:26:04 +00:00
Fix S3 implementation of frozen domain check.
This commit is contained in:
+1
-1
@@ -518,7 +518,7 @@ func domainFrozenObjectName(domain string) string {
|
||||
}
|
||||
|
||||
func (s3 *S3Backend) checkDomainFrozen(ctx context.Context, domain string) error {
|
||||
_, err := s3.client.GetObject(ctx, s3.bucket, domainFrozenObjectName(domain),
|
||||
_, err := s3.client.StatObject(ctx, s3.bucket, domainFrozenObjectName(domain),
|
||||
minio.GetObjectOptions{})
|
||||
if err == nil {
|
||||
return ErrDomainFrozen
|
||||
|
||||
Reference in New Issue
Block a user