From ceeba0c6186609e743f03981ff777217bbbbe829 Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Tue, 23 May 2017 18:43:52 -0400 Subject: [PATCH] Rename multipart tmpfile basename for consistency. Also remove useless rand(1000). --- lib/restclient/payload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/restclient/payload.rb b/lib/restclient/payload.rb index fe6adfa..5112f33 100644 --- a/lib/restclient/payload.rb +++ b/lib/restclient/payload.rb @@ -144,7 +144,7 @@ module RestClient def build_stream(params) b = '--' + boundary - @stream = Tempfile.new("RESTClient.Stream.#{rand(1000)}") + @stream = Tempfile.new('rest-client.multipart.') @stream.binmode @stream.write(b + EOL)