From e8af466de13c0dca7d920efc677da698d1cc287f Mon Sep 17 00:00:00 2001 From: Sander Steffann Date: Tue, 20 Jul 2021 13:02:41 +0200 Subject: [PATCH] Document setTag(Array) behaviour Explicitly document that setTag and setTagArray do not overwrite existing tag values. --- pdns/dnsdistdist/docs/reference/dq.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 546e1d7c9b..76a432a1ef 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -222,14 +222,16 @@ This state can be modified from the various hooks. .. method:: DNSQuestion:setTag(key, value) Set a tag into the DNSQuestion object. - + This function will not overwrite an existing tag. If the tag already exists it will keep its original value. + :param string key: The tag's key :param string value: The tag's value .. method:: DNSQuestion:setTagArray(tags) Set an array of tags into the DNSQuestion object. - + This function will not overwrite an existing tag. If the tag already exists it will keep its original value. + :param table tags: A table of tags, using strings as keys and values .. method:: DNSQuestion:setTrailingData(tail) -> bool -- 2.47.2