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

JSON mime type #120

Open
madzodiac opened this issue May 6, 2023 · 1 comment
Open

JSON mime type #120

madzodiac opened this issue May 6, 2023 · 1 comment

Comments

@madzodiac
Copy link

Specifications

  • Image hash or version: latest
  • Platform: armv7
  • Subsystem:

Expected Behavior

The webserver should deliver deliver json files with the json mime type and not as plain text

Actual Behavior

webserver delivers json files as plain text and nit as json mime type.

This results in that dump1090exporter cannot utilize the produced json files and results in the problem described here.

Steps to Reproduce the Problem

  1. Call a .json file under http://:8080/data/ e.g. aircraft.json
  2. File is delivered as plain text, not json
@MaxWinterstein
Copy link
Contributor

Had a quick look at this, I guess we can't solve this here.
At least I did not find any solution to add header modification to thethttp.

There was an attemp to change the webserver to httpd(known as Apache) but it was dismissed by the maintainer.
See #114

I created a PR at the main repo that should fix this at the root, but I have no idea if and when they release.
claws/dump1090-exporter#42

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

No branches or pull requests

2 participants