lib/splash/exiter.rb in prometheus-splash-0.8.1 vs lib/splash/exiter.rb in prometheus-splash-0.8.2
- old
+ new
@@ -58,10 +58,10 @@
end
end
def splash_return(options = {})
- data = EXIT_MAP[options[:case]]
+ data = EXIT_MAP[options[:case]].clone
data[:status] = (data[:code]>0)? :failure : :success
data[:more] = options[:more] if options[:more]
return data
end