lib/roda.rb in roda-3.19.0 vs lib/roda.rb in roda-3.20.0

- old
+ new

@@ -1310,11 +1310,14 @@ set_default_headers h = @headers if b.empty? s = @status || 404 - if (s == 304 || s == 204 || s == 205 || (s >= 100 && s <= 199)) + if (s == 304 || s == 204 || (s >= 100 && s <= 199)) h.delete("Content-Type") + elsif s == 205 + h.delete("Content-Type") + h["Content-Length"] = '0' else h["Content-Length"] ||= '0' end else s = @status || default_status