Skip to content

Commit

Permalink
Merge e45b0c3 into a4a6087
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneyryderChuck committed Jan 8, 2018
2 parents a4a6087 + e45b0c3 commit 33cabc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/http/2/compressor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ def encode(headers)

# Literal header names MUST be translated to lowercase before
# encoding and transmission.
headers.map! { |hk, hv| [hk.downcase, hv] }
headers.map! do |hk, hv|
key = hk.downcase
hv = '/' if key == ':path' && hv.empty?
[key, hv]
end

commands = @cc.encode(headers)
commands.each do |cmd|
Expand Down

0 comments on commit 33cabc5

Please sign in to comment.