Open-EO / openeo-python-client

Python client API for OpenEO
https://open-eo.github.io/openeo-python-client/
Apache License 2.0
156 stars 42 forks source link

Do requests with Accept application/json #439

Open soxofaan opened 1 year ago

soxofaan commented 1 year ago

most openEO requests expect a JSON response. Python client should set a Accept: application/JSON header accordingly. This might help network middleware to behave better (e.g. return an JSON error instead of HTML)