diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-10-26 00:23:48 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-10-26 00:23:48 +0900 |
commit | 27491b6b2f5fba7e8a75c418c16b4ffb23217b55 (patch) | |
tree | 2c66a7b8e9af90b8980c011a4b3f32087da6fb3d | |
parent | d3d7f5c64ca9087a7e8e5025b6cf534d45d4be4b (diff) | |
download | plum-27491b6b2f5fba7e8a75c418c16b4ffb23217b55.tar.gz |
rack/connection: use Plum::BinaryString
-rw-r--r-- | lib/plum/rack/connection.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/plum/rack/connection.rb b/lib/plum/rack/connection.rb index 45cde79..9a00800 100644 --- a/lib/plum/rack/connection.rb +++ b/lib/plum/rack/connection.rb @@ -1,3 +1,5 @@ +using Plum::BinaryString + module Plum module Rack class Connection @@ -156,7 +158,7 @@ module Plum if "set-cookie" == key rbase[key] = v_.gsub("\n", "; ") # RFC 7540 8.1.2.5 else - key = key.byteshift(2) if key.start_with?("x-") + key.byteshift(2) if key.start_with?("x-") rbase[key] = v_.tr("\n", ",") # RFC 7230 7 end end |