lib/stub/server.rb in cf-uaac-3.1.0 vs lib/stub/server.rb in cf-uaac-3.1.1
- old
+ new
@@ -115,9 +115,14 @@
headers["content-type"] = "text/html"
info = ERB::Util.html_escape(info.pretty_inspect) unless info.is_a?(String)
@body = "<html><body>#{info}</body></html>"
nil
end
+ def empty()
+ @status = 204
+ @body = ''
+ nil
+ end
def set_cookie(name, value, options = {})
@cookies << options.each_with_object("#{name}=#{value}") { |(k, v), o|
o << (v.nil? ? "; #{k}" : "; #{k}=#{v}")
}
end