module Rack
  module Adapter
    class Camping
      def initialize(app)
        @app = app
      end

      def call(env)
        env["PATH_INFO"] ||= ""
        env["SCRIPT_NAME"] ||= ""
        controller = @app.run(env['rack.input'], env)
        [controller.status, controller.headers, controller.body]
      end
    end
  end
end

module Rack
  module Adapter
    class Camping
      def initialize(app)
        @app = app
      end

      def call(env)
        env["PATH_INFO"] ||= ""
        env["SCRIPT_NAME"] ||= ""
        controller = @app.run(env['rack.input'], env)
        h = controller.headers
        h.each_pair do |k,v|
          if v.kind_of? URI
            h[k] = v.to_s
          end
        end
        [controller.status, controller.headers, controller.body]
      end
    end
  end
end

Fix Camping redirects into Strings when they're URIs
Fix Camping redirects into Strings when they're URIs

darcs-hash:20070304022942-92d64-8ba8f4966041c11d53bfdd2fd356d2435808e914.gz
