]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
DIG: mark HTTP GET method in output
authorArtem Boldariev <artem@boldariev.com>
Wed, 17 Aug 2022 14:35:28 +0000 (17:35 +0300)
committerArtem Boldariev <artem@boldariev.com>
Thu, 18 Aug 2022 10:34:22 +0000 (13:34 +0300)
This commit makes dig mark the usage of HTTP(S) GET protocol usage in
its output.

bin/dig/dig.c

index 2142f9696aa7c703fbdb47040c73275bdf102719..04ca4001c716b5202546f4ed16aab54b8cefcfd3 100644 (file)
@@ -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";