Please sign in to comment.
Avoid slurping or parsing request body on PUT requests
Uploading a large file via the HTTP PUT method causes `@env["rack.input"].read' to be called inside the POST method. This means the entire file is slurped into memory and was needlessly causing my Sinatra process to eat up 300M+ for some uploads I've been doing.
- Loading branch information...