Flowdock
method

create_body

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: CGI::QueryExtension
create_body(is_large) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/cgi/core.rb, line 567
    def create_body(is_large)  #:nodoc:
      if is_large
        require 'tempfile'
        body = Tempfile.new('CGI', encoding: "ascii-8bit")
      else
        begin
          require 'stringio'
          body = StringIO.new("".force_encoding("ascii-8bit"))
        rescue LoadError
          require 'tempfile'
          body = Tempfile.new('CGI', encoding: "ascii-8bit")
        end
      end
      body.binmode if defined? body.binmode
      return body
    end
Register or log in to add new notes.