lib/cuba.rb in cuba-3.0.0.rc3 vs lib/cuba.rb in cuba-3.0.0.rc4

- old
+ new

@@ -31,10 +31,10 @@ @headers["Content-Length"] = @length.to_s @body << s end def redirect(path, status = 302) - @headers = { "Location" => path } + @headers["Location"] = path @status = status end def finish [@status, @headers, @body]