lib/zold/http.rb in zold-0.17.1 vs lib/zold/http.rb in zold-0.17.2
- old
+ new
@@ -103,11 +103,11 @@
def status
code.zero? ? 599 : code
end
def status_line
- status_message
+ status_message || ''
end
def to_s
"#{status}: #{status_line}\n#{body}"
end
@@ -126,10 +126,10 @@
def status
599
end
def status_line
- @ex.message
+ @ex.message || ''
end
def headers
{}
end