From 1a6ff33abb120fdf611a1a69a3b55f4616290413 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 2 Aug 2019 18:08:58 +0200 Subject: [PATCH] dnsdist: Document that DNQuestion::setHTTPResponse() is not enough --- pdns/dnsdistdist/docs/reference/dq.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 6d40afc8d8..53e7eb053c 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -181,6 +181,7 @@ This state can be modified from the various hooks. Set the HTTP status code and content to immediately send back to the client. For HTTP redirects (3xx), the string supplied in ''body'' should be the URL to redirect to. For 200 responses, the value of the content type header can be specified via the ''contentType'' parameter. + In order for the response to be sent, the QR bit should be set before returning and the function should return Action.HeaderModify. :param int status: The HTTP status code to return :param string body: The body of the HTTP response, or a URL if the status code is a redirect (3xx) -- 2.39.2