http-protocol 0.9.0 → 0.9.1

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
  SHA256:
3
- metadata.gz: 81d011054c5b26d9adf2351384897c7eefe52ce45ed056f9593ef6d5beeff716
4
- data.tar.gz: 1dc681ebfccc93481badc3dc09006f8fb29928ea3f63ee5ef3dc0f90fa0978c6
3
+ metadata.gz: 61546510b1d4238169a5d0217695807d85c620423df4b4e39abb4367ac6b5b1d
4
+ data.tar.gz: 7bb0f5e83af9f7ecedcf6a8096624b5375a75b5ba3d9d3fc921efb35de2750ba
5
5
  SHA512:
6
- metadata.gz: 1f2d3ed31be6772e17d9e8f116b41f9682c62e4665a11bf8bd49e180a39f8d8f4a8f267552dc6c0aa0dbac86dd5d06f5bb10e7b4081384d59f57af8b109ea2f3
7
- data.tar.gz: f98c68034cd663a5f773f32b5cbc058738c9fde4399f4afa4adb92fbfcef8dd8da033522755020567d6fd4774ddf0e2dd9188c4adf39da08f88d658072a3120b
6
+ metadata.gz: f7e793901c275a301891fa8a378b2399f73e7bb5da6f0cc07e694f18b3ae106e852ec7a846ed8d0c8ee6020a6df86f948a3f4d8660553f4f1e582be83bf9e4b9
7
+ data.tar.gz: eba5b7ba208802bc3757b9963651d08f336923a97c45ea0d85099098ffd887bdfa580606a9645bafd1201fbb828cecc0ab14d37921d91a251a10f37dedaefd05
@@ -177,6 +177,8 @@ module HTTP
177
177
  hash[key] = policy.new(value)
178
178
  end
179
179
  else
180
+ raise ArgumentError, "Header #{key} can only be set once!" if hash.include?(key)
181
+
180
182
  # We can't merge these, we only expose the last one set.
181
183
  hash[key] = value
182
184
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module HTTP
22
22
  module Protocol
23
- VERSION = "0.9.0"
23
+ VERSION = "0.9.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams