From e0e48fc4dbe13b814feb75d7d161b43f34255ced Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Mon, 22 May 2017 01:38:53 -0400 Subject: [PATCH] Add history note for #603. --- history.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/history.md b/history.md index 0db20c3..8eb79fd 100644 --- a/history.md +++ b/history.md @@ -21,6 +21,11 @@ ParamsArray passed as the payload. Instead, automatically use Payload::Multipart if the ParamsArray contains a file handle, or use Payload::UrlEncoded if it doesn't. (#508) +- Gracefully handle Payload objects (Payload::Base or subclasses) that are + passed as a payload argument. Previously, `Payload.generate` would wrap a + Payload object in Payload::Streamed, creating a pointlessly nested payload. + Also add a `closed?` method to Payload objects, and don't error in + `short_inspect` if `size` returns nil. (#603) # 2.0.2