From f3db2dc95beaebf91cf5c338260930b1ac2b4fa5 Mon Sep 17 00:00:00 2001
From: Jun Ouyang <ouyangjun1999@gmail.com>
Date: Sun, 29 Sep 2024 18:18:39 +0800
Subject: [PATCH] fix code

---
 README.md | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/README.md b/README.md
index a576fdde..b8d84f8d 100644
--- a/README.md
+++ b/README.md
@@ -380,6 +380,18 @@ Retrieves the OpenSSL `SSL*` object for the current HTTP request.
 
 On success, this function returns the pointer of type `SSL`. Otherwise `nil` and a string
 describing the error will be returned.
+resty.kong.tls.disable\_http2\_alpn
+----------------------------------------------------
+**syntax:** *ok, err = resty.kong.tls.disable\_http2\_alpn()*
+
+**context:** *client_hello_by_lua*
+
+**subsystems:** *http*
+
+Disables HTTP/2 ALPN negotiation for the current TLS connection. When called, the
+connection will not negotiate HTTP/2 using ALPN and will fallback to HTTP/1.1 even though [`http2`](https://nginx.org/en/docs/http/ngx_http_v2_module.html#http2) directive is enabled.
+
+This function returns `true` when the call is successful. Otherwise it returns `false` and a string describing the error.
 
 [Back to TOC](#table-of-contents)