Sha256: 62f383dafa7280d98f9f4274a032e3e31c8bf2c0869ee8b741de8953e8ecb231

Contents?: true

Size: 489 Bytes

Versions: 158

Compression:

Stored size: 489 Bytes

Contents

# In the candlepin proxy controllers we pass the request body
# straight from the request through to candlepin
# This does not have a seek() method which rest client needs
# to log properly.

if defined? PhusionPassenger
  module PhusionPassenger
    module Utils
      class TeeInput
        def seek(position)
          if position == 0
            rewind
          else
            fail "Seeking not supported to non zero position"
          end
        end
      end
    end
  end
end

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
katello-3.14.0 lib/monkeys/passenger_tee_input.rb
katello-3.13.3 lib/monkeys/passenger_tee_input.rb
katello-3.14.0.rc2 lib/monkeys/passenger_tee_input.rb
katello-3.13.2 lib/monkeys/passenger_tee_input.rb
katello-3.14.0.rc1 lib/monkeys/passenger_tee_input.rb
katello-3.13.1 lib/monkeys/passenger_tee_input.rb
katello-3.13.0 lib/monkeys/passenger_tee_input.rb
katello-3.13.0.rc2.1 lib/monkeys/passenger_tee_input.rb
katello-3.13.0.rc2 lib/monkeys/passenger_tee_input.rb
katello-3.12.3 lib/monkeys/passenger_tee_input.rb
katello-3.12.2 lib/monkeys/passenger_tee_input.rb
katello-3.13.0.rc1 lib/monkeys/passenger_tee_input.rb
katello-3.12.1 lib/monkeys/passenger_tee_input.rb
katello-3.11.2 lib/monkeys/passenger_tee_input.rb
katello-3.10.2 lib/monkeys/passenger_tee_input.rb
katello-3.12.0 lib/monkeys/passenger_tee_input.rb
katello-3.12.0.rc2 lib/monkeys/passenger_tee_input.rb
katello-3.10.1.1 lib/monkeys/passenger_tee_input.rb
katello-3.12.0.rc1 lib/monkeys/passenger_tee_input.rb
katello-3.10.1 lib/monkeys/passenger_tee_input.rb