File: multipart_boundary.rb

package info (click to toggle)
ruby-httparty 0.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 964 kB
  • sloc: ruby: 7,521; xml: 425; sh: 35; makefile: 14
file content (13 lines) | stat: -rw-r--r-- 236 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'securerandom'

module HTTParty
  class Request
    class MultipartBoundary
      def self.generate
        "------------------------#{SecureRandom.urlsafe_base64(12)}"
      end
    end
  end
end