HF RL Explorer

AllowContentType middleware incorrectly rejects requests with non-empty content

AllowContentType middleware incorrectly rejects requests with non-empty content: a task in UltraTerminal (Harbor dataset). The AllowContentType middleware is incorrectly rejecting requests that have content when the content type doesn't match the allowed types. Instead of checking content type…

The task

The AllowContentType middleware is incorrectly rejecting requests that have content when the content type doesn't match the allowed types. Instead of checking content type validation for requests with content, it's skipping the validation entirely for requests with content and only validating empty requests.

Part of harness-hub/UltraTerminal.