Skip to content

Disable json mimetype header validation - #42

Open
MaxWinterstein wants to merge 1 commit into
claws:masterfrom
MaxWinterstein:max-disable-json-mimetype-check
Open

Disable json mimetype header validation#42
MaxWinterstein wants to merge 1 commit into
claws:masterfrom
MaxWinterstein:max-disable-json-mimetype-check

Conversation

@MaxWinterstein

Copy link
Copy Markdown

Warning: untested!

As some webservers / reverse proxies seem to deliver the wrong Content-Type for the aircraft.json we should disable the verification of this.

The aiohttp documentation about this can be seen here: https://docs.aiohttp.org/en/stable/client_advanced.html#disabling-content-type-validation-for-json-responses

Related issues e.g.

#22

Thom-x/docker-fr24feed-piaware-dump1090#120

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.

1 participant