Did you test your code ? There is not trustXSendfileTypeHeader in the Response object