How about

```ruby
return true if VALID_MIME_TYPES.include?(return_type[/\Ahttp/])
```
to get rid of the magic string