fix #562 write Content-Length 0 for non GET/HEAD requests that have no body