Skip to content

in_http: replace WEBrick::HTTPUtils.parse_query with URI - #4900

Merged
daipom merged 1 commit into
fluent:masterfrom
daipom:in_http-replace-webrick-parse-query
Jul 30, 2025
Merged

daipom merged 1 commit into
fluent:masterfrom
daipom:in_http-replace-webrick-parse-query

Conversation

@daipom

@daipom daipom commented Apr 10, 2025 •

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:

What this PR does / why we need it:
Replace WEBrick::HTTPUtils.parse_query with URI.decode_www_form in in_http.

WEBrick is no longer recommended for production use.

WEBrick::HTTPUtils is just a util, so it might be harmless.
However, it would be happy to reduce dependence if possible.

This changes some specifications unintentionally.
At least, this makes us unable to use ; delimitter.
We need to consider whether this breaking change is acceptable or not.

Docs Changes:
Not needed.

Release Note:
The same as the title.

WEBrick is no longer recommended for production use.

WEBrick::HTTPUtils is just a util, so it might be harmless.
However, it would be happy to reduce dependence if possible.

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
@daipom daipom added this to the v1.19.0 milestone Apr 10, 2025
Comment thread lib/fluent/plugin/in_http.rb
@daipom
daipom marked this pull request as draft April 14, 2025 01:55
@daipom
daipom marked this pull request as ready for review July 29, 2025 01:25

@Watson1978 Watson1978 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍🏻

@daipom

daipom commented Jul 30, 2025

Copy link
Copy Markdown
Contributor Author

Thanks!

@daipom
daipom merged commit 6ce90f9 into fluent:master Jul 30, 2025
@daipom
daipom deleted the in_http-replace-webrick-parse-query branch July 30, 2025 01:39
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.

Replace WEBrick because it is no longer recommended for production use

3 participants