lib/rack/mock.rb in rack-0.3.0 vs lib/rack/mock.rb in rack-0.4.0
- old
+ new
@@ -117,9 +117,10 @@
@headers = Rack::Utils::HeaderHash.new
headers.each { |field, values|
values.each { |value|
@headers[field] = value
}
+ @headers[field] = "" if values.empty?
}
@body = ""
body.each { |part| @body << part }