From: Artem Boldariev Date: Wed, 17 Aug 2022 14:35:28 +0000 (+0300) Subject: DIG: mark HTTP GET method in output X-Git-Tag: v9.19.5~31^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd29705a9f66810bd6cc079a2e444f36a95632fc;p=thirdparty%2Fbind9.git DIG: mark HTTP GET method in output This commit makes dig mark the usage of HTTP(S) GET protocol usage in its output. --- diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 2142f9696aa..04ca4001c71 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -359,9 +359,11 @@ received(unsigned int bytes, isc_sockaddr_t *from, dig_query_t *query) { proto = "TLS"; } else if (query->lookup->https_mode) { if (query->lookup->http_plain) { - proto = "HTTP"; + proto = query->lookup->https_get ? "HTTP-GET" + : "HTTP"; } else { - proto = "HTTPS"; + proto = query->lookup->https_get ? "HTTPS-GET" + : "HTTPS"; } } else if (query->lookup->tcp_mode) { proto = "TCP";