senchalabs/connect — Issue #415: bodyParser should check for empty body
Author: donpark
Created: 2011-11-19 03:35:58+00:00
State: open

Sometimes requests are made with Content-Type set but without body.

Connect 1.8.0 throws `SyntaxError: Unexpected end of input` error when HTTP POST with Content-Type set to 'application/json' but without body.

Master branch seems to be checking for empty body.

Workaround: send empty object (`{}`) as JSON body.