diff options
author | Aurora Nockert <aurora@nockert.se> | 2022-08-06 11:24:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 21:24:15 +1200 |
commit | 8f8db6654c7f511de8850c799d452f89f7bfe25b (patch) | |
tree | 4f13873c50fa5ddc28fe23eab90f87b8389921a8 | |
parent | a0124bfc11c7636f9b32d61af46f8eb9cfaa0dd2 (diff) | |
download | rack-8f8db6654c7f511de8850c799d452f89f7bfe25b.tar.gz |
Add note about status changes to upgrade guide (#1945)
-rw-r--r-- | UPGRADE-GUIDE.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/UPGRADE-GUIDE.md b/UPGRADE-GUIDE.md index cae0dab5..65ced4a6 100644 --- a/UPGRADE-GUIDE.md +++ b/UPGRADE-GUIDE.md @@ -258,3 +258,9 @@ or streaming body. You must not call `#each` directly on the body and instead you should return a new body that calls `#each` on the original body. + +### Status needs to be an `Integer` + +The response status is now required to be an `Integer` with a value greater or equal to 100. + +Previously any object that responded to `#to_i` was allowed, so a response like `["200", {}, ""]` will need to be replaced with `[200, {}, ""]` and so on. This can be done by calling `#to_i` on the status object yourself. |