when hashing a file, save the file size for later
use the previously remembered file size as the Content-Length in a response