fix content-length bug: use filesize instead of content.size