Commit 7ba5cf0
committed
Replace CGI.parse with URI.decode_www_form for Ruby 4.0 compatibility
Ruby 4.0 removed `CGI.parse`. Use `URI.decode_www_form` instead and
shape the result as `Hash<String, Array<String>>` to keep the existing
callers (which expect array values) working without changes.
Compatible with Ruby 2.7 through 4.0.1 parent b58ae6f commit 7ba5cf0
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
0 commit comments