Fix unreleased regression where OSM notes were being parsed as JSON and thus not loading (re: #7188)

This commit is contained in:
Quincy Morgan
2020-06-08 13:19:46 -04:00
parent 79dd0491a7
commit bf7b30ace9

View File

@@ -597,7 +597,11 @@ export default {
if (err) {
return callback(err);
} else {
return parseJSON(payload, callback, options);
if (path.indexOf('.json') !== -1) {
return parseJSON(payload, callback, options);
} else {
return parseXML(payload, callback, options);
}
}
}
}