added custom headers based on regex match on file name
added custom content-type header support