emit content-length event on response object