fix http status code & content length
Merge pull request #9 from macdylan/master

fix http status code & content length