diff --git a/lib/savon/soap/fault.rb b/lib/savon/soap/fault.rb index 421c6287..a9a37171 100644 --- a/lib/savon/soap/fault.rb +++ b/lib/savon/soap/fault.rb @@ -19,7 +19,7 @@ def initialize(http) # Returns whether a SOAP fault is present. def present? - @present ||= http.body =~ /<(.+:)?Body>(\s*)<(.+:)?Fault>/ + @present ||= http.body[0,1000] =~ /<(.+:)?Body>(\s*)<(.+:)?Fault>/ end # Returns the SOAP fault message.