Commit a5a3e92
committed
Guard RequestBody#to_s rewind call for Rack 3
Rack 3 removed the requirement for rack.input to implement #rewind.
Rack::Lint::InputWrapper in Rack 3 only exposes gets, read, each, and
close, so calling rewind unconditionally raised NoMethodError on every
PUT/POST request, causing WEBrick to return a 500 error.1 parent 0fca519 commit a5a3e92
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
0 commit comments