From 0c73021b25c35fc2a8fd93cda991b297553c6ff4 Mon Sep 17 00:00:00 2001 From: Ilya Averyanov Date: Thu, 8 Aug 2019 16:38:07 +0300 Subject: [PATCH] Added hint about specifying body size for requests with Enumerable as a body --- lib/http/request/body.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/request/body.rb b/lib/http/request/body.rb index 14af30b8..e9ca9a65 100644 --- a/lib/http/request/body.rb +++ b/lib/http/request/body.rb @@ -24,7 +24,7 @@ def size elsif @source.nil? 0 else - raise RequestError, "cannot determine size of body: #{@source.inspect}" + raise RequestError, "cannot determine size of body: #{@source.inspect}, please set body size with `Content-Length` header explicitly" end end