Skip to content

Default to text/xml if server doesn't return a Content-Type#977

Merged
geographika merged 1 commit into
geopython:masterfrom
geographika:content-type-missing
Mar 6, 2025
Merged

Default to text/xml if server doesn't return a Content-Type#977
geographika merged 1 commit into
geopython:masterfrom
geographika:content-type-missing

Conversation

@geographika
Copy link
Copy Markdown
Contributor

Fix for #976. Assume content is text/xml if the server doesn't return a Content-Type header, as in the case of https://data.geopf.fr/wfs/wfs?service=WFS&request=GetCapabilities&version=2.0.0 which returns valid XML.

@pvgenuchten
Copy link
Copy Markdown
Contributor

Makes sense... thanx

@geographika geographika merged commit 7ae09c7 into geopython:master Mar 6, 2025
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.

2 participants