commit/galaxy-central: dan: Update GenomeSpace exporter directory listing to send the now working/required accept string.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/777483d69cd8/ Changeset: 777483d69cd8 User: dan Date: 2014-03-13 22:07:23 Summary: Update GenomeSpace exporter directory listing to send the now working/required accept string. Affected #: 1 file diff -r 5e9c0065ae572bb32ae55591bd5a998abecdf5b5 -r 777483d69cd8d7db7b78c9b519f244e7321433e2 tools/genomespace/genomespace_exporter.py --- a/tools/genomespace/genomespace_exporter.py +++ b/tools/genomespace/genomespace_exporter.py @@ -121,7 +121,7 @@ if value: value = value[0]#single select, only 1 value def recurse_directory_dict( url_opener, cur_options, url ): - cur_directory = urllib2.Request( url )#, headers = { 'Content-Type': 'application/json', 'Accept': 'application/text' } ) #apparently http://www.genomespace.org/team/specs/updated-dm-rest-api:"Every HTTP request to the Data Manager should include the Accept header with a preference for the media types application/json and application/text." is not correct + cur_directory = urllib2.Request( url, headers = { 'Content-Type': 'application/json', 'Accept': 'application/json, text/plain' } ) cur_directory.get_method = lambda: 'GET' #get url to upload to try: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org