]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document that DNQuestion::setHTTPResponse() is not enough
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 2 Aug 2019 16:08:58 +0000 (18:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 5 Aug 2019 15:31:10 +0000 (17:31 +0200)
pdns/dnsdistdist/docs/reference/dq.rst

index 6d40afc8d843d73004abe6c8fbd5faae2cc15f84..53e7eb053c5041659088961b029a4069df544f32 100644 (file)
@@ -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)