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:
parent
801f18de8e
commit
ceeba0c618
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue