                     @setFilename next.name
                     request
                         .get next.url
+                        .accept 'text/csv'
                         .end (err, res) ->
                             return reject err if err?
-                            h next.name, data
+                            h next.name, res.text
             h()
 
         ###

    submit: (types) ->
        new Promise (resolve, reject) =>
            files = types.map (type) ->
                url: server.url "/poi.csv?type=#{type}"
                name: "#{type}.csv"
            zip = new JSZip()
            zipFolder = zip.folder 'poi'

JSZip = require 'jszip'
request = require 'superagent'

geocaches = require '../geocache.coffee'
server = require '../backend.coffee'

class PoiActions extends Actions
