From a606c9c86ee4e8f716859fcfeb16f4d2b29fd57a Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Wed, 15 May 2024 06:56:19 +0930 Subject: [PATCH] address pr comment --- x-pack/filebeat/input/http_endpoint/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/filebeat/input/http_endpoint/handler.go b/x-pack/filebeat/input/http_endpoint/handler.go index 4555a869c0d7..b799248a9350 100644 --- a/x-pack/filebeat/input/http_endpoint/handler.go +++ b/x-pack/filebeat/input/http_endpoint/handler.go @@ -196,6 +196,8 @@ func getTimeoutWait(u *url.URL, log *logp.Logger) (time.Duration, error) { return 0, nil case 1: if _, ok := q["wait_for_completion_timeout"]; !ok { + // Get the only key in q. We don't know what it is, so iterate + // over the first one of one. var k string for k = range q { break