Repository navigation
Conversation
|
Hmmh, difficult to decide as there are lots of applications outside that we would need to re-test again. See duplicate #676 |
|
Sorry, haven't seen the other ticket. I changed it for kurviger.de and wanted to commit the improvement back to GraphHopper. One major decision towards that content type was also this link. I think it should not break any other applications. But we still have to test it :(. |
|
Maybe @ratrun you have some experience which applications we really should test? At least 2 online tools, 2 navis and this Garmin application which I cannot remember anymore. Hmmh, but wait: the file type should not influence the bytes (?) so if both are equal we should be able to change this even without much testing? |
|
This only changes the http header information of the content-type. This should only influence services that download gpx files from GraphHopper. The file itself should stay the same. Some browser/pc/setting combination changes the file ending of the downloaded file to .xml since the content-type was xml. BTW: I guess you mean BaseCamp. |
ah, yes. |
|
Ok, I've asked one and the client still works with this change. Can you further add this fallback if the client is explicitly asking for it? if("application/xml".equals(req.getContentType())) // toLowerCase?
res.setContentType("application/xml")
else
res.setContentType("application/gpx+xml") |
|
Fixed |
|
Thanks. 👍 |
The ContentType for .gpx files should be
application/gpx+xml. Also see here for more details: https://en.wikipedia.org/wiki/GPS_Exchange_FormatI had a small amount of users that received the file as
filename.gpx.xml. It seems like this fixes the issue.