'User-Agent' header can not be set via 'http headers' array
I have a setup that requires testing with specific user agents, so the default 'Monit/5.14' is not sufficient. I figured I'd specify it as part of the 'if failed' statement, like so;
with http headers [User-Agent: 'Mozilla/5.0 (compatible; Monit 5.14; +https://example.com)']
But that does not work; it still uses the default UA string, and the target nginx will complain in the error logs, about 'client sent invalid header line: ":Mozilla/5.0 (compatible; Monit 5.14; +https://example.com)" while reading client request headers'.
I suspect that this is currently not implemented, so it breaks. Could this be implemented? Would be greatly appreciated, thanks! :)