Skip to content

Commit

Permalink
fix(ai-proxy): fix content-encoding for non 200 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Dec 2, 2024
1 parent a850c26 commit 2cdafdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/llm/plugin/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ function MetaPlugin:header_filter(sub_plugin, conf)
-- for gzip response, don't set content-length at all to align with upstream
kong.response.clear_header("Content-Length")
kong.response.set_header("Content-Encoding", "gzip")

else
kong.response.clear_header("Content-Encoding")
end

else
Expand Down

1 comment on commit 2cdafdd

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:2cdafddf69cd3d3c56ef66d0a3ea3ab154cbd1f2
Artifacts available https://github.com/Kong/kong/actions/runs/12118160742

Please sign in to comment.