Skip to content

Commit

Permalink
remove bool condition to expose balance
Browse files Browse the repository at this point in the history
  • Loading branch information
mpwsh committed May 9, 2023
1 parent ad2611a commit 086ff6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/hub-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: "0.14.0"
version: "0.14.1"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 2 additions & 4 deletions charts/hub-gateway/plugins/credits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ function _M.access(conf, ctx)
end

-- respond the credit balance to the user too
if conf.expose_credit_balance then
core.request.set_header(ctx, "X-Credit-Balance", data.balance)
core.response.set_header(ctx, "X-Credit-Balance", data.balance)
end
core.request.set_header(ctx, "X-Credit-Balance", data.balance)
core.response.set_header(ctx, "X-Credit-Balance", data.balance)
end

return _M

0 comments on commit 086ff6c

Please sign in to comment.