Permalink
Browse files

* Explicitly set the XmlSimple to not keep the root node when parsing…

… XML responses from siteuptime (i.e. KeepRoot => false), this ensures that sappy will work with Merb.
  • Loading branch information...
1 parent a1e0bc5 commit 295b4bdb51b916d9bfea74f09ed5788179b1392f Piotr Biegaj & Sam Merritt committed Aug 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sappy/response.rb
View
@@ -14,7 +14,7 @@ def initialize(xml)
end
def parse
- hash = XmlSimple.xml_in(@xml.to_s)
+ hash = XmlSimple.xml_in(@xml.to_s, 'KeepRoot' => false)
if hash["stat"] == "fail"
error = hash["err"]
message = error.first["msg"]

0 comments on commit 295b4bd

Please sign in to comment.