DOC: hlua: fix a few typos in HTTPMessage.set_body_len() documentation
authorWilly Tarreau <w@1wt.eu>
Tue, 27 May 2025 17:31:12 +0000 (19:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 2 Jun 2025 14:22:29 +0000 (16:22 +0200)
A few typos were noticed while gathering info for the 3.2 announce
messages, this fixes them, and will probably constitute the last
commit of this release. There's no need to backport it unless commit
94055a5e7 ("MEDIUM: hlua: Add function to change the body length of
an HTTP Message") is backported.

(cherry picked from commit 21ce685fcdc2931cf6f5aafbf1f7cb68c9c7a1a1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 240daee3aba09ceb508f5afecf2f7d26f0f06b06)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

doc/lua-api/index.rst

index fc742c2..b98abbc 100644 (file)
@@ -4380,10 +4380,10 @@ HTTPMessage class
   added with the "chunked" value. In both cases, all existing "Content-Length"
   and "Transfer-Encoding" headers are removed.
 
-  This fnuction should be used in the filter context to be able to alter the
-  payload of the HTTP message. The internal state fo the HTTP message is updated
+  This function should be used in the filter context to be able to alter the
+  payload of the HTTP message. The internal state of the HTTP message is updated
   accordingly. :js:func:`HTTPMessage.add_header()` or
-  :js:func:`HTTPMessage.set_header()` functions must to be used in that case.
+  :js:func:`HTTPMessage.set_header()` functions must be used in that case.
 
   :param class_httpmessage http_msg: The manipulated HTTP message.
   :param type length: The new payload length to set. It can be an integer or