-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Rack response bodies that allow to_ary (#22)
Newer Rack versions support bodies that respond to `to_ary` and in newer versions of Rails the Rails response body does as well. It seems previously we would not treat such response bodies correctly, meaning they would not get cached by Idempo (providing locking but no caching). This should be rectified with this PR - when running on Rack 3 (and newer Rails) `to_ary` will be called on the body, materializing it into an Array of Strings.
- Loading branch information
Stanislav (Stas) Katkov
authored
Sep 20, 2024
1 parent
8140994
commit 7454463
Showing
4 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters