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

Invalid Content-Type header #1044

Open
azurit opened this issue Apr 24, 2023 · 1 comment
Open

Invalid Content-Type header #1044

azurit opened this issue Apr 24, 2023 · 1 comment

Comments

@azurit
Copy link

azurit commented Apr 24, 2023

Hi,

FusionInventory Agent is using invalid value for Content-Type header: application/x-compress-zlib. See, for example, here for complete list of valid MIME types: https://www.freeformatter.com/mime-types-list.html

Even more, requests using such value for Content-Type header are blocked by default by ModSecurity WAF while using Core Rule Set ruleset.

As for fix, i suggest using standard way of HTTP data compression (see Content-Encoding header) instead of implementing custom way of doing so.

@ddurieux
Copy link
Member

Hi, thanks for the information, the version 3 (in development), will be more in standard with JSON + HTTP(S).
The format used come from the OCS Inventory Agent and we never changed the behavior, until this future version 3 ^_^

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