Skip to content

Commit

Permalink
docs(pdk) fix a mistake in the 'request.get_http_version()' documenta…
Browse files Browse the repository at this point in the history
…tion

From Kong#5072
  • Loading branch information
thibaultcha authored Sep 26, 2019
1 parent 6668c3b commit 2b952bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kong/pdk/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ local function new(self)

---
-- Returns the HTTP version used by the client in the request as a Lua
-- number, returning values such as `"1.1"` and `"2.0."`, or `nil` for
-- number, returning values such as `1.1` and `2.0.`, or `nil` for
-- unrecognized values.
--
-- @function kong.request.get_http_version
-- @phases rewrite, access, header_filter, body_filter, log, admin_api
-- @treturn string|nil the http version
-- @treturn number|nil the HTTP version as a Lua number
-- @usage
-- kong.request.get_http_version() -- "1.1"
-- kong.request.get_http_version() -- 1.1
function _REQUEST.get_http_version()
check_phase(PHASES.request)

Expand Down
2 changes: 1 addition & 1 deletion t/01-pdk/04-request/07-get_http_version.t
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ version: 1.1
=== TEST 3: request.get_http_version() returns number
=== TEST 3: request.get_http_version() returns a number
--- http_config eval: $t::Util::HttpConfig
--- config
location = /t {
Expand Down

0 comments on commit 2b952bd

Please sign in to comment.