diff --git a/js/router/BRouter.js b/js/router/BRouter.js index ccdf2beb..d1bc9e6c 100644 --- a/js/router/BRouter.js +++ b/js/router/BRouter.js @@ -171,7 +171,8 @@ L.BRouter = L.Class.extend({ xhr.status === 200 && xhr.responseText && // application error when not GeoJSON format (text/plain for errors) - xhr.getResponseHeader('Content-Type').split(';')[0] === 'application/vnd.geo+json' + (xhr.getResponseHeader('Content-Type').split(';')[0] === 'application/geo+json' || + xhr.getResponseHeader('Content-Type').split(';')[0] === 'application/vnd.geo+json') ) { // leaflet.spin //gpxLayer.fire('data:loaded');