jetruby / apollo_upload_server-ruby

MIT License
180 stars 50 forks source link

Add strict mode #44

Closed alexkalderimis closed 3 years ago

alexkalderimis commented 3 years ago

Strict mode is a new configuration setting applied to the middleware:

ApolloUploadServer::Middleware.strict_mode = true

Applying this setting changes the behavior of this module in the following two ways:

Applying these checks ensures that requests are not able to create large arrays using small input.