lib/owasp_zap/spider.rb in owasp_zap-0.0.83 vs lib/owasp_zap/spider.rb in owasp_zap-0.0.84
- old
+ new
@@ -20,10 +20,10 @@
end
def status
ret = JSON.parse(RestClient::get("#{@base}/spider/view/status/?zapapiformat=JSON"))
if ret.has_key? "status"
- ret["status"]
+ ret["status"].to_i
else
100 # it means no running
end
end