From bd29705a9f66810bd6cc079a2e444f36a95632fc Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Wed, 17 Aug 2022 17:35:28 +0300 Subject: [PATCH] DIG: mark HTTP GET method in output This commit makes dig mark the usage of HTTP(S) GET protocol usage in its output. --- bin/dig/dig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 2142f9696a..04ca4001c7 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";