Edited at

RangeError (exceeded available parameter key space) が出た時に実際どんなkey=valueの値が大きくてまずかったのか覗きたい

More than 5 years have passed since last update.

けどこんなのでええんかな


monkey_patch_rack.rb

class Rack::Utils::KeySpaceConstrainedParams

alias_method "orig_assign", "[]="
def []=(key,value)
Rails.logger.info "[parameter] #{key}, #{value}"
orig_assign(key,value)
end
end