lib/roda/plugins/drop_body.rb in roda-3.69.0 vs lib/roda/plugins/drop_body.rb in roda-3.70.0
- old
+ new
@@ -25,11 +25,11 @@
r = super
case r[0]
when DROP_BODY_RANGE, 204, 304
r[2] = EMPTY_ARRAY
h = r[1]
- h.delete("Content-Length")
- h.delete("Content-Type")
+ h.delete(RodaResponseHeaders::CONTENT_LENGTH)
+ h.delete(RodaResponseHeaders::CONTENT_TYPE)
when 205
r[2] = EMPTY_ARRAY
empty_205_headers(r[1])
end
r