Pass file to headermapper.

This will let the header mapper implementation insert additional headers
where the mime type mapping would otherwise not differentiate files.