    # File lib/action_controller/vendor/rack-1.0/rack/handler/scgi.rb, line 26
          def   process_requestprocess_requestprocess_request(request, input_body, socket)
            env = {}.replace(request)
            env.delete "HTTP_CONTENT_TYPE"
            env.delete "HTTP_CONTENT_LENGTH"
            env["REQUEST_PATH"], env["QUERY_STRING"] = env["REQUEST_URI"].split('?', 2)
            env["HTTP_VERSION"] ||= env["SERVER_PROTOCOL"]
            env["PATH_INFO"] = env["REQUEST_PATH"]
            env["QUERY_STRING"] ||= ""
            env["SCRIPT_NAME"] = ""
            env.update({"rack.version" => [0,1],
                         "rack.input" => StringIO.new(input_body),
                         "rack.errors" => $stderr,

                         "rack.multithread" => true,
                         "rack.multiprocess" => true,
                         "rack.run_once" => false,

                         "rack.url_scheme" => ["yes", "on", "1"].include?(env["HTTPS"]) ? "https" : "http"
                       })
            status, headers, body = app.call(env)
            begin
              socket.write("Status: #{status}\r\n")
              headers.each do |k, vs|
                vs.split("\n").each { |v| socket.write("#{k}: #{v}\r\n")}
              end
              socket.write("\r\n")
              body.each {|s| socket.write(s)}
            ensure
              body.close if body.respond_to? :close
            end
          end