diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-08 15:59:37 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-08 15:59:37 +0900 |
commit | 0c1db0fb1db8f66d627c5e24ba538a8f80d091d1 (patch) | |
tree | 0e7a06669e38a645f9f0efb8fcc0683a97b39fbc /lib/plum/server/http_connection.rb | |
parent | c803f957cd0fed1ae65c2d1108b3e71b1c90fd38 (diff) | |
download | plum-0c1db0fb1db8f66d627c5e24ba538a8f80d091d1.tar.gz |
style: prefer '{ |x|' to '{|x|'
Diffstat (limited to 'lib/plum/server/http_connection.rb')
-rw-r--r-- | lib/plum/server/http_connection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plum/server/http_connection.rb b/lib/plum/server/http_connection.rb index 0834379..b257137 100644 --- a/lib/plum/server/http_connection.rb +++ b/lib/plum/server/http_connection.rb @@ -26,7 +26,7 @@ module Plum parser = HTTP::Parser.new parser.on_headers_complete = proc { |_headers| - headers = _headers.map {|n, v| [n.downcase, v] }.to_h + headers = _headers.map { |n, v| [n.downcase, v] }.to_h } parser.on_body = proc { |chunk| body << chunk } parser.on_message_complete = proc { |env| @@ -69,7 +69,7 @@ module Plum nheaders = headers.merge({ ":method" => parser.http_method, ":path" => parser.request_url, ":authority" => headers["host"] }) - .reject {|n, v| ["connection", "http2-settings", "upgrade", "host"].include?(n) } + .reject { |n, v| ["connection", "http2-settings", "upgrade", "host"].include?(n) } stream.receive_frame Frame.headers(1, encoder.encode(nheaders), end_headers: true) stream.receive_frame Frame.data(1, body, end_stream: true) |