1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Rename multipart tmpfile basename for consistency.

Also remove useless rand(1000).
This commit is contained in:
Andy Brody 2017-05-23 18:43:52 -04:00
parent 801f18de8e
commit ceeba0c618

View file

@ -144,7 +144,7 @@ module RestClient
def build_stream(params) def build_stream(params)
b = '--' + boundary b = '--' + boundary
@stream = Tempfile.new("RESTClient.Stream.#{rand(1000)}") @stream = Tempfile.new('rest-client.multipart.')
@stream.binmode @stream.binmode
@stream.write(b + EOL) @stream.write(b + EOL)