Set the content header on CSV downloads

Main code re. 1958