Skip to content

Test for XML in response, regardless of mimetype#984

Merged
geographika merged 1 commit into
geopython:masterfrom
geographika:977
Mar 19, 2025
Merged

Test for XML in response, regardless of mimetype#984
geographika merged 1 commit into
geopython:masterfrom
geographika:977

Conversation

@geographika
Copy link
Copy Markdown
Contributor

Fix for #983. application/octet-stream is a very generic mime type which could contain anything, so rather than adding more mime types to the list, a check is made to see if the response contains an xml tag, or is one of the following mime types:

['text/xml', 'application/xml', 'application/vnd.ogc.wms_xml']

@SimonSAMPERE - can you check if this works with the WFS/WMS services that previously were failing?

@SimonSAMPERE
Copy link
Copy Markdown

@geographika it works, well done!

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