Skip to content
Merged
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
6 changes: 3 additions & 3 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ HTTP.timeout(read: 0.25, write: 0.25, connect: 0.25).get(url)
HTTP.timeout(read: 5, keep_alive: 10)
# => ArgumentError: unknown timeout options: keep_alive

# v6 — rejects mixed short/long forms
HTTP.timeout(read: 5, write_timeout: 3)
# => ArgumentError (use one form consistently)
# v6 — rejects the short and long form of the same option
HTTP.timeout(read: 5, read_timeout: 3)
# => ArgumentError: can't pass both read and read_timeout

# Valid in v6
HTTP.timeout(read: 5, write: 3, connect: 2)
Expand Down