Skip to content

Commit

Permalink
fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 17, 2009
1 parent 9c3876a commit 612f504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/phuby/rails.rb
Expand Up @@ -7,7 +7,8 @@ def send_headers response_code; end

def header value, op
k, v = value.split(': ', 2)
self.code = 302 if k == 'Location' headers[k] = [headers[k], Rack::Utils.unescape(v)].compact.join "\n"
self.code = 302 if k == 'Location'
headers[k] = [headers[k], Rack::Utils.unescape(v)].compact.join "\n"
end
end

Expand Down

0 comments on commit 612f504

Please sign in to comment.