Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## main

* Bug fixes:
* Forward keyword arguments through UploadedFile delegation on Ruby 3+.

* Minor enhancements:
* Add `Rack::Test::Session#default_input_content_type` and
`#convert_input_hash_to_string` private methods to allow for
Expand Down
1 change: 1 addition & 0 deletions lib/rack/test/uploaded_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def path
def method_missing(method_name, *args, &block)
tempfile.public_send(method_name, *args, &block)
end
ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)

# Append to given buffer in 64K chunks to avoid multiple large
# copies of file data in memory. Rewind tempfile before and
Expand Down