fingerly 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/fingerly/client.rb +6 -1
- data/lib/fingerly/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: 92e4046da9469b62150fc3f50c8091ce69e86a62be2114916ed2e40e5bb90f98
|
|
4
|
+
data.tar.gz: ac9d6f5c1d51ffd832b6c5e14d86c44a46c224a1a4e5e5467859470fcd049638
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58aec6cc043aa8e471b9e9923d1e4876a13d01f699df69f227a73ae93d9faf26ce8c58fc71d2589081b01324778074b0b9fa2f209525153cf909495d15d8f832
|
|
7
|
+
data.tar.gz: 76f501fae45401d8ffafacc3c62b793414dcfbe72c157106cca3f800b81cc82e05a802315d37644ee7e4f34941e40df8c196249fdab03cd183f1f326cb444101
|
data/README.md
CHANGED
|
@@ -317,7 +317,7 @@ the server's or the load balancer's own limit as well. Falcon streams the body,
|
|
|
317
317
|
so there the proxy stops reading at the limit. Only the content type, the
|
|
318
318
|
visitor metadata Fingerly needs, and an `Idempotency-Key` are forwarded;
|
|
319
319
|
customer cookies and authorization headers never are. The proxy reports itself
|
|
320
|
-
upstream as `ruby/0.1.
|
|
320
|
+
upstream as `ruby/0.1.1` in `x-fingerly-proxy-version`, which the dashboard
|
|
321
321
|
shows per proxy.
|
|
322
322
|
|
|
323
323
|
When Fingerly cannot be reached, the visitor gets a gateway error rather than
|
data/lib/fingerly/client.rb
CHANGED
|
@@ -187,7 +187,12 @@ module Fingerly
|
|
|
187
187
|
# past retention.
|
|
188
188
|
# @raise [TimeoutError] if the request exceeds the client timeout
|
|
189
189
|
def get(request_id)
|
|
190
|
-
|
|
190
|
+
# URL parsers resolve a dot segment even when it is percent-encoded, so
|
|
191
|
+
# escaping cannot keep these in the path: "." and the empty id would name
|
|
192
|
+
# the list route, and ".." a route above it, secret key attached.
|
|
193
|
+
if ["", ".", ".."].include?(request_id.to_s)
|
|
194
|
+
raise ConfigurationError, "request_id is not a Fingerly request id"
|
|
195
|
+
end
|
|
191
196
|
|
|
192
197
|
Event.new(@client.get("/events/#{Events.escape(request_id)}"))
|
|
193
198
|
end
|
data/lib/fingerly/version.rb
CHANGED