mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:02:06 -04:00
DIG: mark HTTP GET method in output
This commit makes dig mark the usage of HTTP(S) GET protocol usage in its output.
This commit is contained in:
parent
b2f2fed65b
commit
bd29705a9f
1 changed files with 4 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue