Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 295b4bdb51b916d9bfea74f09ed5788179b1392f 1 parent a1e0bc5
Piotr Biegaj & Sam Merritt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sappy/response.rb
View
2  lib/sappy/response.rb
@@ -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"]
Please sign in to comment.
Something went wrong with that request. Please try again.