plum 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 447dc7156d4bac143cd986cb6c71ceb62489d7df
4
- data.tar.gz: 832bdf996c86fdec234387af1ee495b0afd3a7f8
3
+ metadata.gz: fbb3d755285f78919374f46331be663f93b0c2a2
4
+ data.tar.gz: 7fec872c23645cd58bfaac4498687d7ed30163c5
5
5
  SHA512:
6
- metadata.gz: 1e6abb80ec4abdd4e5f63e4b1f36fa52a22d55e8d811969ba528d79738820f16d3daccb9ce80617fe321b0f29390665e777d6493f07765a132b415d2019cae48
7
- data.tar.gz: dafcae1a4ce6faed76e7a0fff14f806fdf3e74b056ec3a4f8f0fa94b44375df4abc0527d46ad1ee902877c846a85004f33e8ffae55e3d657f3bd0bbe65d60ae7
6
+ metadata.gz: b89109d466c9f33465f45080c664b16e4f897a505837a91d98bc4c2785968ee1899be7cf92f3a94512632eae35c475b43c3a09d5148195d52d1864e3948de838
7
+ data.tar.gz: 333261402b76c021fcd3385dbd8e6ac8e2a1d77d65155978ebf23fbd08cac2dea8d6401047024850ebaeb311eedecf27d3723b483edc3eb9f71042f8c7e43ba4
@@ -17,7 +17,7 @@ module Plum
17
17
 
18
18
  def store(name, value)
19
19
  value = value.to_s
20
- @dynamic_table.unshift([name, value])
20
+ @dynamic_table.unshift([name.freeze, value.freeze])
21
21
  @size += name.bytesize + value.bytesize + 32
22
22
  evict
23
23
  end
@@ -131,7 +131,11 @@ module Plum
131
131
  # unknown HTTP/2 pseudo-headers
132
132
  else
133
133
  if "cookie" == k && ebase["HTTP_COOKIE"]
134
- ebase["HTTP_COOKIE"] << "; " << v
134
+ if ebase["HTTP_COOKIE"].frozen?
135
+ ebase["HTTP_COOKIE"] += "; " << v
136
+ else
137
+ ebase["HTTP_COOKIE"] << "; " << v
138
+ end
135
139
  else
136
140
  ebase["HTTP_" << k.tr("-", "_").upcase!] = v
137
141
  end
data/lib/plum/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plum
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rhenium