Skip to content

Commit

Permalink
Use first 1000 chars to check for soap fault
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdp committed Jan 2, 2011
1 parent 708e81f commit 0eb3da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/savon/soap/fault.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0eb3da4

Please sign in to comment.