Repository navigation
Commit 417be8a
Guard Net::HTTPHeader#content_length spec by net-http version
Strict Content-Length parsing came with net-http 0.10.0, not with a Ruby
version: Ruby 4.0.x ships net-http 0.9.1 by default, but updating the gem
on it brings the strict behavior. Guard on Net::HTTP::VERSION instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 0816047 commit 417be8a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments