Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fetch_layer_metadata() more flexible #8

Merged
merged 6 commits into from
Jan 23, 2024
Merged

Conversation

JosiahParry
Copy link
Collaborator

Closes #7
@kbvernon reported that https://services.arcgisonline.com/arcgis/rest/services/USA_Topo_Maps/MapServer would not work with arc_open(). This was an idiosyncrasy where f=json was being passed in the request body. But this service does not work with f=json in the body but requires it as a part of the url query.

This PR makes sure that f=json is added to the URL instead of the body. The token, if present, is added using httr2::req_auth_bearer_token().

@JosiahParry JosiahParry merged commit cce3775 into main Jan 23, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: mapserver returning HTML instead of json when requested
1 participant