Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle a missing
rack.input
in the env
Ever since rack/rack#2018 `rack.input` has been optional so we can't assume it's there and call `read` or `rewind` on it in `Apipie::Extractor::Recorder`. Using safe navigation to call these methods seems like the simplest approach because we want to look for `rack.request.form_hash` instead in both the situation where `rack.input` is missing, or it's empty.
- Loading branch information