Skip to content
This repository
Browse code

prompt a download for the Mapnik XML - fixes #1197 and #1400 - refs #…

  • Loading branch information...
commit c671970b36af58fd93f66880c3a7489777a9af1b 1 parent b9655e1
Dane Springmeyer springmeyer authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  servers/App.bones
2  servers/App.bones
@@ -81,6 +81,8 @@ server.prototype.projectXML = function(req, res, next) {
81 81 success: function(model, resp) {
82 82 model.localize(model.toJSON(), function(err) {
83 83 if (err) return next(err);
  84 + // https://github.com/mapbox/tilemill/issues/1421
  85 + res.header('Content-Disposition', 'attachment');
84 86 res.send(model.xml, {'content-type': 'text/xml'});
85 87 });
86 88 },

0 comments on commit c671970

Please sign in to comment.
Something went wrong with that request. Please try again.