Fixing bug related to file download.
Adding back headers.