mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-17 21:12:22 +01:00
Update VoidCat/Controllers/UploadController.cs
This commit is contained in:
parent
b69277f133
commit
ff8727e249
@ -71,7 +71,7 @@ namespace VoidCat.Controllers
|
||||
var stripMetadata = (mime?.StartsWith("image/") ?? false) || (Request.Headers.GetHeader("V-Strip-Metadata")
|
||||
?.Equals("true", StringComparison.InvariantCultureIgnoreCase) ?? false);
|
||||
|
||||
if (_settings.MaintenanceMode && !stripMetadata)
|
||||
if (_settings.MaintenanceMode)
|
||||
{
|
||||
throw new InvalidOperationException("Site is in maintenance mode");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user