[openstreetmap/openstreetmap-website] openstreetmap api, download gpx data as blob (Issue #3507)

John-David Deubl notifications at github.com
Sat Mar 26 09:59:09 UTC 2022


now it worked, the following header was missing: 
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept

```JS
const headers = new Headers({
      Authorization: n,
      Accept: "application/gpx+xml",
    });
```

maybe it would be useful for other developers to store the information in the documentation of the api.

thank you for your help.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3507#issuecomment-1079653118
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3507/1079653118 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220326/a9019a97/attachment.htm>


More information about the rails-dev mailing list