Werk #13049 · Oct 5, 21
RESTAPI: require accept header
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
In previous version the accept header of the HTTP-request was completely ignored.
With this werk the accept header is obligatory. If no or a wrong accept header is provided an error with a 406 status code will be returned.
For most requests this means you have to provide the follwing header line:
Accept: application/json
For some other requests different accept headers may be required. All headers are documented in the official rest-api documentation.
For example when downloading the agent binary the following header is required:
Accept: application/octet-stream
Details
- Class:
- New Features
- Level:
- Trivial
- Component:
- REST API
- Versions:
- 2.1.0b1CommunityProUltimate + MT