Fix the problem that when body is empty no terminating chunk is sent for chunked encoding.
Avoid sending the terminating chunk in case it's a HEAD request.
Merge pull request #4 from kjkuan/fix-chunked-encoding-with-empty-body

Fix the problem that when body is empty no terminating chunk is sent for chunked encoding.