small changes to get it working
This commit is contained in:
parent
f12ceef4a8
commit
609015b6fc
|
@ -4,7 +4,7 @@ module Zero
|
|||
# The response for rack has to be an array of three elements. This class makes
|
||||
# it easier to fill all the needed data.
|
||||
class Response
|
||||
attr_reader :code, :header, :body
|
||||
attr_accessor :code, :header, :body
|
||||
|
||||
# init a new response
|
||||
def initialize
|
||||
|
@ -16,7 +16,7 @@ module Zero
|
|||
# builds the response for rack and checks for protocol errors
|
||||
# @return Array the rack response
|
||||
def response
|
||||
|
||||
[@code, @header, @body]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue