change to fix issue #4 (not tested)
Merge pull request #2 from rplevy/content-length

change to fix issue #4 (not tested)