lib/lamby/debug.rb in lamby-0.6.0 vs lib/lamby/debug.rb in lamby-1.0.0
- old
+ new
@@ -3,10 +3,10 @@
include Lamby::SamHelpers
extend self
def on?(event)
- params = event['queryStringParameters']
+ params = event['multiValueQueryStringParameters'] || event['queryStringParameters']
(Rails.env.development? || ENV['LAMBY_DEBUG']) && params && params['debug'] == '1'
end
def call(event, context, env)
[ 200, { 'Content-Type' => 'text/html' }, [body(event, context, env)] ]