geoadmin / mf-chsdi3

api3.geo.admin.ch source code
https://api3.geo.admin.ch
Other
33 stars 15 forks source link

Content-Type missmatch in data.geo.admin.ch #2136

Closed rfrancel closed 7 years ago

rfrancel commented 8 years ago

Some data have the wrong Content-Type.

$ curl -I --referer "https://toto.geo.admin.ch" "https://data.geo.admin.ch/ch.bafu.hydroweb-warnkarte_regional/ch.bafu.hydroweb-warnkarte_regional_fr.json"

Content-Type: application/octet-stream
loicgasser commented 8 years ago

Yes they handle that themseleves. It doesn t break the app but it should be fixed. Ping @davidoesh if you can tell them

procrastinatio commented 8 years ago

The uploader is responsible for setting the right Content-Type. Some client are doing the magick, while other not. application/octet-streamis the default value.