From ba030312f84d112be83f0387bb052da3650c9e03 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Fri, 24 Jan 2020 12:06:06 +1300 Subject: Revert moving attributes below `#initialize`. --- lib/rack/response.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/rack/response.rb b/lib/rack/response.rb index fb9d734b..7425eb75 100644 --- a/lib/rack/response.rb +++ b/lib/rack/response.rb @@ -27,6 +27,12 @@ module Rack CHUNKED = 'chunked' STATUS_WITH_NO_ENTITY_BODY = Utils::STATUS_WITH_NO_ENTITY_BODY + attr_accessor :length, :status, :body + attr_reader :headers + + # @deprecated Use {#headers} instead. + alias header headers + # Initialize the response object with the specified body, status # and headers. # @@ -61,12 +67,6 @@ module Rack yield self if block_given? end - attr_accessor :length, :status, :body - attr_reader :headers - - # @deprecated Use {#headers} instead. - alias header headers - def redirect(target, status = 302) self.status = status self.location = target -- cgit v1.2.1