Docker/Helpers/src/github.com/roscopecoltran/scancode-toolkit/tests/licensedcode/data/licenses/cgi_wrapper.rb
# finalizes the response in a way Rack applications would expect
finalizes the response in a way Rack applications would expect
finalizes the response in a way Rack applications would expect
def rack_response
    @headv[SET_COOKIE].concat(@output_cookies) if @output_cookies
    @headv.each_pair do |key,value|
      @head[key] ||= value.join("\n") unless value.empty?
    end
    @status ||= @head.delete(Status)
    [ @status || 500, @head, [ @body.string ] ]
  end
def rack_response @headv [ SET_COOKIE ] . concat ( @output_cookies ) if @output_cookies @headv . each_pair do | key , value | @head [ key ] ||= value . join ( "\n" ) unless value . empty? end @status ||= @head . delete ( Status ) [ @status || 500 , @head , [ @body . string ] ] end
finalizes the response in a way Rack applications would expect
finalizes the response in a way Rack applications would expect
# @head[CONTENT_LENGTH] ||= @body.size # Capitalized "Status:", with human-readable status code (e.g. "200 OK")