Permalink
Browse files

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

  • Loading branch information...
1 parent b9655e1 commit c671970b36af58fd93f66880c3a7489777a9af1b @springmeyer springmeyer committed Apr 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 servers/App.bones
View
2 servers/App.bones
@@ -81,6 +81,8 @@ server.prototype.projectXML = function(req, res, next) {
success: function(model, resp) {
model.localize(model.toJSON(), function(err) {
if (err) return next(err);
+ // https://github.com/mapbox/tilemill/issues/1421
+ res.header('Content-Disposition', 'attachment');
res.send(model.xml, {'content-type': 'text/xml'});
});
},

0 comments on commit c671970

Please sign in to comment.