adamchainz/apig-wsgi

Improvement of binary support

Closed this issue · 2 comments

Wouldn't it be better to enable support for binary files for only a list of content types?

If you have a concrete use case we could look at implementing this, but for now I think we're okay. Afaik it works to transfer text content as binary.

In the context of a REST API, I found it simpler to specify which content type was binary than to list all non-binary content types. But I understand your point of view.

It might be useful to add application/vnd.oai.openapi to the list of non-binary content types.