fix length when .body is missing
Merge pull request #259 from dead-horse/fix-length

fix length when .body is missing