From 609015b6fc7e5d7017ee47f7655137a3da7cb100 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Fri, 5 Oct 2012 08:12:34 +0200 Subject: small changes to get it working --- lib/zero/response.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zero/response.rb b/lib/zero/response.rb index 0527b07..7515cea 100644 --- a/lib/zero/response.rb +++ b/lib/zero/response.rb @@ -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 -- cgit v1.2.3-70-g09d2