extend/cowboy — pull request #453 by rambocoder (2013-02-27 20:05:14+00:00)
Title: Fix #446 body/1 body_qs/1, multipart_data/1 DoS attack vulnerability

Fix #446 body/1 body_qs/1, multipart_data/1 DoS attack vulnerability

Added body/2 body_qs/2 and multipart_data/2 API to cowboy_req which require a number for the maximum bytes a request body will be parsed to.

body/1 body_qs/1 and multipart_data/1 will by default try to read up to 8MBs of a request body.