lib/airbrake/sender.rb in airbrake-3.1.12 vs lib/airbrake/sender.rb in airbrake-3.1.13
- old
+ new
@@ -172,10 +172,10 @@
raise e
end
def json_api_enabled?
!!(host =~ /collect.airbrake.io/) &&
- project_id.present?
+ project_id =~ /\S/
end
end
class CollectingSender < Sender
# Used when test mode is enabled, to store the last XML notice locally