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 +4 -4
- data/lib/waithook/cli.rb +1 -1
- data/lib/waithook/version.rb +1 -1
- data/lib/waithook.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5df3978af4bd4dc3330d86dd3a1948d082d1642882163066ec4e09d9b63245b2
|
4
|
+
data.tar.gz: af869d9efc1604f24b3fd1455767f06d5af75d62c5a225611b87b450e21f4bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2aa1c1079788668a57c3483708aa5158f3fb2b9abdfa8fafb227027ed83c085d970b97d65068a34373cfcb5edcae0ffc481351b1ebc53ee726f7f707eaaadec
|
7
|
+
data.tar.gz: 19c9797a9712c5df295515da8a5b299132ec2176364094d7b6d5f7ca96e502aa986e379a6be94fad05c5109114bc7b7423c9ce6550bf2e1d7d903b5209c7d5a5
|
data/lib/waithook/cli.rb
CHANGED
data/lib/waithook/version.rb
CHANGED
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
|
-
|
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
|