Try to set content-length when possible
Merge pull request #12 from lakenen/try-set-content-length

Try to set content-length when possible