File: multipart_boundary.rb

package info (click to toggle)
ruby-httparty 0.16.2%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 840 kB
  • sloc: ruby: 5,567; xml: 425; sh: 35; makefile: 12
file content (11 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
require 'securerandom'

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