Enforces content-length on request bodies.

Fixes issue #5.