Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Resolve confusion between req:body_qs and req:multipart_data #449
When a form is POST'ed with multipart data, disallow using req:body_qs() and req:body() with a meaningful error or exception, because it interferes with req:multipart_data().
When a form is POST'ed with urlencoded content type, or when page is GET'ed, disallow using req:multipart_data with a meaningful error or exception.
Also disallow calling them in any succession more than once, since first call clears body and subsequent calls return no data causing confusion.