Skip to content

lua: support body setBytes with header content length set automatically - #18989

Merged
yanavlasov merged 5 commits into
envoyproxy:mainfrom
StarryVae:lua-set-body
Nov 30, 2021
Merged

yanavlasov merged 5 commits into
envoyproxy:mainfrom
StarryVae:lua-set-body

Conversation

@StarryVae

Copy link
Copy Markdown
Contributor

Signed-off-by: wangkai19 [email protected]

Commit Message: This patch modifies body setBytes API to make the header content length can be set automatically, which can avoid error when you forget set header content length in lua script and make the setBytes API more convenient for users.

Risk Level: Low
Testing: ut, integration
Docs Changes: N/A

@repokitteh-read-only

Copy link
Copy Markdown

Hi @StarryVae, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #18989 was opened by StarryVae.

see: more, trace.

@wbpcode

wbpcode commented Nov 12, 2021 •

Copy link
Copy Markdown
Member

cc @dio

Signed-off-by: wangkai19 <[email protected]>
Signed-off-by: wangkai19 <[email protected]>
Signed-off-by: wangkai19 <[email protected]>
@StarryVae

Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Check envoy-presubmit isn't fully completed, but will still attempt retrying.
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18989 (comment) was created by @StarryVae.

see: more, trace.

@StarryVae

Copy link
Copy Markdown
Contributor Author

@dio PTAL :)

@dio dio left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@StarryVae Thank you for working on this. A good idea really. Could you update the docs as well? Currently, we have a sample requiring setting the content-length post modifying the content.

https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/lua_filter.html?highlight=lua#script-examples

@StarryVae

Copy link
Copy Markdown
Contributor Author

@StarryVae Thank you for working on this. A good idea really. Could you update the docs as well? Currently, we have a sample requiring setting the content-length post modifying the content.

https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/lua_filter.html?highlight=lua#script-examples

@dio done, PTAL again, thank you!

@StarryVae
StarryVae requested a review from dio November 24, 2021 07:07

@dio dio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome. Thanks!

@StarryVae

Copy link
Copy Markdown
Contributor Author

@dio @lizan @yanavlasov It seems that this patch is blocked by "First-time contributors need a maintainer to approve running workflows" ? please help, thank you!

@yanavlasov
yanavlasov merged commit d1fc2e3 into envoyproxy:main Nov 30, 2021
mpuncel added a commit to mpuncel/envoy that referenced this pull request Nov 30, 2021
* main:
  Stats: Filter stats to be flushed to sinks (envoyproxy#18805)
  build(deps): bump sphinx from 4.3.0 to 4.3.1 in /tools/base (envoyproxy#19122)
  ext-authz: fix missing UAEX flag on Denied CheckResponse (envoyproxy#18965)
  lua: support body setBytes with header content length set automatically (envoyproxy#18989)

Signed-off-by: Michael Puncel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants