Renamed request.accept to request.acceptHeaders to make it clear that it does not include the extension. Renamed Filename.name to Filename.base.