fusioninventory-agent icon indicating copy to clipboard operation
fusioninventory-agent copied to clipboard

Invalid Content-Type header

Open azurit opened this issue 2 years ago • 1 comments

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.

azurit avatar Apr 24 '23 16:04 azurit

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 ^_^

ddurieux avatar Apr 24 '23 17:04 ddurieux