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.
This commit is contained in:
Michał Kępień 2026-05-21 11:52:56 +02:00
parent a296bcf587
commit 802c03313f
No known key found for this signature in database

View file

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