waithook 0.4.0 → 0.4.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: 587f43be470d0045276f76af9a9518cde2c4c0fda3a48894a09bc8a4c053b78d
4
- data.tar.gz: bb935b3ba35498e9250f4df4f7f750939defd5c08eb6bbf6501bbfdec97dca74
3
+ metadata.gz: 5df3978af4bd4dc3330d86dd3a1948d082d1642882163066ec4e09d9b63245b2
4
+ data.tar.gz: af869d9efc1604f24b3fd1455767f06d5af75d62c5a225611b87b450e21f4bc1
5
5
  SHA512:
6
- metadata.gz: a8e43d129c6ba5043ce3b5aa1f279f3c16e104392f4d54ae6f3cb3a21b788037705933bbd037315477c7f29e919d0233b83d7c7fc2ced9de1dcbf670c20e06f2
7
- data.tar.gz: 62a00aa0dd68c73d4e1ed57cc941e1797f8c6e43df03ccb8d5d84001728925ff043100dbb72c98790cf1a61dcbe20e32b62c0141755a0113e1f84668070a7cca
6
+ metadata.gz: f2aa1c1079788668a57c3483708aa5158f3fb2b9abdfa8fafb227027ed83c085d970b97d65068a34373cfcb5edcae0ffc481351b1ebc53ee726f7f707eaaadec
7
+ data.tar.gz: 19c9797a9712c5df295515da8a5b299132ec2176364094d7b6d5f7ca96e502aa986e379a6be94fad05c5109114bc7b7423c9ce6550bf2e1d7d903b5209c7d5a5
data/lib/waithook/cli.rb CHANGED
@@ -61,4 +61,4 @@ class Waithook
61
61
  end
62
62
  end
63
63
  end
64
- end
64
+ end
@@ -1,3 +1,3 @@
1
1
  class Waithook
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/lib/waithook.rb CHANGED
@@ -221,6 +221,8 @@ class Waithook
221
221
  end
222
222
  end
223
223
 
224
+ SKIP_FORWARD_HEADERS = %w[host content-length connection accept-encoding accept content-encoding]
225
+
224
226
  # Send webhook information to other HTTP server
225
227
  #
226
228
  # webhook = Waithook.subscribe(path: 'my-webhooks').wait_message
@@ -245,7 +247,9 @@ class Waithook
245
247
 
246
248
  request = http_klass.new(uri)
247
249
  headers.each do |key, value|
248
- request[key] = value
250
+ if !SKIP_FORWARD_HEADERS.include?(key.to_s.downcase)
251
+ request[key] = value
252
+ end
249
253
  end
250
254
 
251
255
  if body
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waithook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Evstigneev