diff --git a/Iceshrimp.Backend/Core/Extensions/ModelBinderProviderExtensions.cs b/Iceshrimp.Backend/Core/Extensions/ModelBinderProviderExtensions.cs index bd9eaa7a..c38218ec 100644 --- a/Iceshrimp.Backend/Core/Extensions/ModelBinderProviderExtensions.cs +++ b/Iceshrimp.Backend/Core/Extensions/ModelBinderProviderExtensions.cs @@ -39,7 +39,7 @@ public class HybridModelBinder( ) : IModelBinder { public async Task BindModelAsync(ModelBindingContext bindingContext) { if (bodyBinder != null && bindingContext is - { IsTopLevelObject: true, HttpContext.Request.HasFormContentType: false }) { + { IsTopLevelObject: true, HttpContext.Request: { HasFormContentType: false, ContentLength: > 0 } }) { bindingContext.BindingSource = BindingSource.Body; await bodyBinder.BindModelAsync(bindingContext); }