From 0eb3da486465f705a99cb9e8b5a4df3763c8e534 Mon Sep 17 00:00:00 2001 From: jvdp Date: Sun, 2 Jan 2011 16:21:27 +0100 Subject: [PATCH] Use first 1000 chars to check for soap fault --- lib/savon/soap/fault.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.