Werk #10451: check_http: don't set virtual host if not necessary
Component | Checks & agents |
Title | check_http: don't set virtual host if not necessary |
Date | Nov 7, 2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.6.0p7 2.0.0i1 |
Level | Trivial Change |
Class | Bug Fix |
Compatibility | Incompatible - Manual interaction might be required |
Since version 1.6 the active check check_http automatically set the HTTP Host header and used HTTP/1.1 instead of HTTP/1.0 even if no virtual host was supplied. This may lead to timeouts of the check_http plugin on servers which are not fully compliant with HTTP/1.1.
This werk changes this behaviour so that the Host header is only set if a virtual host is given.
Please note that if you rely on HTTP/1.1 or want to use it you have to supply a virtual host.
Please also note that the virtual host will not be set automatically to the host name anymore. If you relied on this behaviour you now have to provide the virtual host in the affected rules.