1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
rest-client--rest-client/spec/unit
Andy Brody 0d5674d84a Switch to multipart boundary with more entropy.
The previous boundary used a random number up to 1,000,000 as the
boundary. This is extremely low entropy compared to what most major
browsers use (20 bits). Instead, use a convention more like WebKit.

RestClient previously would be completely unable to upload a file
generated like so, containing `--0--` through `--1000000--`:

    File.open('foo.txt', 'w') {|f|
      1_000_000.times {|i| f.write("--#{i}--\n") }}

Instead, the boundary now looks like this, with about 95 bits of entropy:
    `----RubyFormBoundaryFg2MqiXXQlT5RkUF`
2015-11-15 22:15:51 -08:00
..
windows Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
_lib.rb Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
abstract_response_spec.rb Add tests for new header multi value handling. 2015-03-23 21:55:40 -07:00
exceptions_spec.rb Rework exception classes in various small ways. 2015-09-12 23:50:33 -07:00
master_shake.jpg Reorganize specs 2013-08-30 18:45:06 -07:00
payload_spec.rb Switch to multipart boundary with more entropy. 2015-11-15 22:15:51 -08:00
raw_response_spec.rb Merge pull request #365 from rest-client/ab-cookies 2015-03-22 17:54:14 -07:00
request2_spec.rb Enable new GET param generation, add tests. 2015-11-12 00:11:33 -08:00
request_spec.rb Enable new GET param generation, add tests. 2015-11-12 00:11:33 -08:00
resource_spec.rb Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
response_spec.rb Store redirection history on reqs/responses. 2015-04-15 15:14:29 -07:00
restclient_spec.rb Fix up tests for encoding changes. 2015-03-13 18:00:51 -07:00
utils_spec.rb Enable new GET param generation, add tests. 2015-11-12 00:11:33 -08:00