Closed Jean-Beru closed 2 months ago
Maybe set to null
or a method unset(string $key)
WDYT ?
IMO, failOnHttpStatusCodes
should consider an empty array as a correct value:
null
=> default http status codes[]
=> no http status codes[...]
=>selected status codesok. Must have to double check how Gotenberg behaves when sending failOnHttpStatusCodes
as []
. Does it behave differently than nothing sent at all ?
Sure! If Gotenberg doesn't care, this issue is useless :-/
Just tried it. It works. So yes :
null
should unset the value from being sent.[]
already works and overrides the default so it allows pages like 404
to render as PDF.Checking on configuration if it is possible.
_Originally posted by @Jean-Beru in https://github.com/sensiolabs/GotenbergBundle/pull/49#discussion_r1647548763_