dont set content lenth header if there is no content

I find this useful when implementing responses to HEAD http method for cache control.