diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 22:44:15 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-11-08 22:44:15 +0900 |
commit | 01bfb2249e0be08968dfbaa755b2c66fcb21b916 (patch) | |
tree | d708b4c9ad376548fd22b216df14829fda71edfc /lib/plum | |
parent | 256e0a5133861568e52c499da8074dd211b650ff (diff) | |
download | plum-01bfb2249e0be08968dfbaa755b2c66fcb21b916.tar.gz |
client/legacy_client_session: fix response header: ':status' header's value must be String for consistency
Diffstat (limited to 'lib/plum')
-rw-r--r-- | lib/plum/client/legacy_client_session.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plum/client/legacy_client_session.rb b/lib/plum/client/legacy_client_session.rb index 087c643..f98e7bf 100644 --- a/lib/plum/client/legacy_client_session.rb +++ b/lib/plum/client/legacy_client_session.rb @@ -96,7 +96,7 @@ module Plum parser = HTTP::Parser.new parser.on_headers_complete = proc { resp_headers = parser.headers.map { |key, value| [key.downcase, value] }.to_h - @response._headers({ ":status" => parser.status_code }.merge(resp_headers)) + @response._headers({ ":status" => parser.status_code.to_s }.merge(resp_headers)) @headers_callback.call(@response) if @headers_callback } |