check for content-length header before setting it in nextTick