bunny_app 1.26.0 → 1.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bunny_app/client.rb +6 -0
- data/lib/bunny_app/version.rb +1 -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: 7c77683e4ecd747af7b3ba4d99b748daa52b201e715024a2962dde274d582757
|
4
|
+
data.tar.gz: 82c6c503f29bea682bb4e5259ec903f929d97d28e427ff01c7efcf5547b6c657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4090284779f66caf383539cd9ac12d906deec95618aa5175e9ff5e3e5d98249b98209b4d32a8c910478bc550493b3d099f9a1ad894215f34625289373ed764
|
7
|
+
data.tar.gz: 4dd2c033e29ec4f1f9f7381048ff0fb13a0a7846a06ca54b0d4ba7c74246d96deb600d6b0e7f0778ed0f067b59d15209a0c084f9cf2ebbc4923336e66a32dc06
|
data/lib/bunny_app/client.rb
CHANGED
@@ -19,6 +19,8 @@ module BunnyApp
|
|
19
19
|
'Content-Type' => 'application/json',
|
20
20
|
'Authorization' => "Bearer #{BunnyApp.access_token}"
|
21
21
|
}
|
22
|
+
|
23
|
+
@headers['Host'] = host_header unless host_header.nil?
|
22
24
|
end
|
23
25
|
|
24
26
|
def fetch_access_token
|
@@ -89,5 +91,9 @@ module BunnyApp
|
|
89
91
|
def verify_ssl
|
90
92
|
return true unless ENV['IGNORE_SSL']
|
91
93
|
end
|
94
|
+
|
95
|
+
def host_header
|
96
|
+
ENV.fetch('BUNNY_HOST_HEADER', nil)
|
97
|
+
end
|
92
98
|
end
|
93
99
|
end
|
data/lib/bunny_app/version.rb
CHANGED