{"action":"closed","issue":{"url":"https://api.github.com/repos/adsabs/adsws/issues/89","repository_url":"https://api.github.com/repos/adsabs/adsws","labels_url":"https://api.github.com/repos/adsabs/adsws/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/adsabs/adsws/issues/89/comments","events_url":"https://api.github.com/repos/adsabs/adsws/issues/89/events","html_url":"https://github.com/adsabs/adsws/issues/89","id":138297117,"number":89,"title":"Forwarding content-type served from the service rather than overriden by the API","user":{"login":"jonnybazookatone","id":633540,"avatar_url":"https://avatars.githubusercontent.com/u/633540?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnybazookatone","html_url":"https://github.com/jonnybazookatone","followers_url":"https://api.github.com/users/jonnybazookatone/followers","following_url":"https://api.github.com/users/jonnybazookatone/following{/other_user}","gists_url":"https://api.github.com/users/jonnybazookatone/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnybazookatone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnybazookatone/subscriptions","organizations_url":"https://api.github.com/users/jonnybazookatone/orgs","repos_url":"https://api.github.com/users/jonnybazookatone/repos","events_url":"https://api.github.com/users/jonnybazookatone/events{/privacy}","received_events_url":"https://api.github.com/users/jonnybazookatone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adsabs/adsws/labels/core","name":"core","color":"009800"},{"url":"https://api.github.com/repos/adsabs/adsws/labels/discoverer","name":"discoverer","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T21:06:49Z","updated_at":"2016-03-31T20:44:59Z","closed_at":"2016-03-31T20:44:59Z","body":"On a few occasions I've had the API completely ignore some of my headers returned from one service or another. In most cases this can be ignored. However, recently I'm trying to return a zip file from a service using flask.send_file, along with header information about the filename, 'Content-Disposition'. By ignoring the headers, the API also tried to decode the information, causing the zip file returned to be fairly garbage.\r\n\r\nTo alleviate this problem, I plan to return the headers from the service to the API, and from the API to the user at this line;\r\n\r\nhttps://github.com/adsabs/adsws/blob/master/adsws/api/discoverer/views.py#L49\r\n\r\nShould check that nothing important is going to be sent back by accident, such as the X-Adsws-User-ID, and any tokens."}}