Skip to content

Commit

Permalink
fix(pdk): remove http2 error in kong.request.enable_buffering() function
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Sep 4, 2024
1 parent 9972720 commit fc3d3fb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions kong/pdk/service/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ local function new(self)
-- kong.service.request.enable_buffering()
request.enable_buffering = function()
check_phase(access_rewrite_balancer)

if ngx.req.http_version() >= 2 then
error("buffered proxying cannot currently be enabled with http/" ..
ngx.req.http_version() .. ", please use http/1.x instead", 2)
end


ngx.ctx.buffered_proxying = true
end

Expand Down

0 comments on commit fc3d3fb

Please sign in to comment.