We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In your source code (lib/grape/util/content_types.rb) you specify the following content_types:
:xml, 'application/xml', :serializable_hash, 'application/json', :json, 'application/json', :jsonapi, 'application/vnd.api+json', :atom, 'application/atom+xml', :rss, 'application/rss+xml', :txt, 'text/plain',
Why is there no "application/octet-stream"? It is the preferred content type for binary data.
Could you please add :binary, 'application/octet-stream' to the list here? Thanks
The text was updated successfully, but these errors were encountered:
Opened #745 to solve this
Sorry, something went wrong.
You can dynamically add content types.
class API < Grape::API content_type :binary, 'application/octet-stream' get do content_type 'application/octet-stream' end end
No branches or pull requests
In your source code (lib/grape/util/content_types.rb) you specify the following content_types:
Why is there no "application/octet-stream"? It is the preferred content type for binary data.
Could you please add :binary, 'application/octet-stream' to the list here? Thanks
The text was updated successfully, but these errors were encountered: