Skip to content

1.2: backport minor fixes and Rails 8.1 appraisal - #484

Merged
chadlwilson merged 5 commits into
jruby:1.2-stablefrom
chadlwilson:1.2-backport-fixes
Sep 9, 2026
Merged

1.2: backport minor fixes and Rails 8.1 appraisal#484
chadlwilson merged 5 commits into
jruby:1.2-stablefrom
chadlwilson:1.2-backport-fixes

Conversation

@chadlwilson

@chadlwilson chadlwilson commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Backports from 1.3 branch

  • minor compatiblity fixes to Rack spec
  • Rack::Lint tests
  • testing with Rails 8.1

Runs a Lint wrapped app through Rack::Handler::Servlet (both DefaultEnv
and ServletEnv modes) and writes the response back through the servlet
response path, so env construction, rack.input behavior and body close
handling are validated against the loaded Rack version's SPEC.

Also fixes the Rack 2.x arm's rack.version value to be Rack::VERSION
(the protocol version Array the Rack 2 SPEC and Lint expect)

(cherry picked from commit 84f2d49)
The newline-splitting header write path called chomp! on each yielded
value - a frozen String ending in a newline raised FrozenError, and
non-frozen app-owned header values were being modified in place.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

(cherry picked from commit 6e843d6)
I could swear I thought Rails 8.1 didn't support Rack 2.2 when it was released...

(cherry picked from commit d10e3c3)
@chadlwilson
chadlwilson marked this pull request as ready for review September 9, 2026 07:47
@chadlwilson
chadlwilson merged commit 1302f02 into jruby:1.2-stable Sep 9, 2026
105 checks passed
@chadlwilson
chadlwilson deleted the 1.2-backport-fixes branch September 9, 2026 07:48
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.

1 participant