docs/server.rb in preval-0.4.1 vs docs/server.rb in preval-0.5.0
- old
+ new
@@ -12,6 +12,8 @@
post '/' do
Preval.process(request.body.read || '').tap do |response|
halt 422 unless response
end
+rescue NoMethodError
+ halt 422
end
- old
+ new