Drop unnecessary qctx.prepare_new_response() call

The ans3 custom server does not have any zones defined, so the responses
passed to its handlers by core isctest.asyncserver code are guaranteed
to be empty.  Remove a call to qctx.prepare_new_response() from
CookieHandler.get_responses() as it is redundant.

(cherry picked from commit 802c03313f)
This commit is contained in:
Michał Kępień 2026-05-21 11:52:56 +02:00
parent ab8a253189
commit 5f39e1d946
No known key found for this signature in database

View file

@ -67,8 +67,6 @@ class CookieHandler(DomainHandler):
self, qctx: QueryContext
) -> AsyncGenerator[DnsResponseSend, None]:
qctx.prepare_new_response()
# Check for client cookie
cookie = _get_cookie(qctx)