Permalink
Browse files

headers did not work unless stripped

  • Loading branch information...
1 parent df5cf9a commit 75f8a3d032430e17c1154a98013fe8f0f4b81802 @tenderlove committed Aug 6, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/phuby/php_handler.rb
View
@@ -10,7 +10,8 @@ def initialize req, res
end
def header value, op
- @res.[]=(*value.split(':', 2))
+ k, v = *value.split(':', 2)
+ @res[k] = v.strip
end
def write string

0 comments on commit 75f8a3d

Please sign in to comment.