Tweak outputToHttp method $filename