Fix doth test when curl with HTTP/2 support is unavailable
This commit makes the 'doth' system test skip HTTP headers check when curl version is new enough but was compiled without HTTP/2 support.
This should fix the 'doth' system test for macOS systems using macports.
Closes #3019 (closed)
Edited by Artem Boldariev