zuora_connect 1.5.40f → 1.5.40g
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/middleware/metrics_middleware.rb +2 -6
- data/lib/zuora_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54ba72e54953fe8619666f8b478594b38ee65750
|
4
|
+
data.tar.gz: 23f50bfea0f4ef8ef5fc285b1b20bca5ad2f857b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0909387abc1a5b4d660ebf13035fc1823ed22445778c38386c161854a4b3105bdc5fb023be26ac5cf69f3aecf4be26dcf164555825bb11a3951e460ad4a2ae2e
|
7
|
+
data.tar.gz: 035c58d0cbf70342b8fb3693f72eecc1affbb35b8c7515af517f892f14d004c88440bb16e16f8f1d41b955348f54c2ea161fc33779c9d17f2bd58403b4663884
|
@@ -47,20 +47,16 @@ module Middleware
|
|
47
47
|
return nil
|
48
48
|
end
|
49
49
|
|
50
|
-
|
51
50
|
# Getting the endpoint and the content_type
|
52
|
-
content_hash = {:html => "text/html", :js => "application/
|
51
|
+
content_hash = {:html => "text/html", :js => "application/javascript", :json => "application/json"}
|
53
52
|
content_type = content_hash[payload[:format]]
|
54
53
|
|
55
54
|
if payload[:headers]
|
56
55
|
request_path = URI(payload[:headers]['REQUEST_URI']).path.split(".")[0]
|
57
56
|
else
|
58
|
-
request_path = payload[:path]
|
57
|
+
request_path = URI(payload[:path]).path.split(".")[0]
|
59
58
|
end
|
60
59
|
|
61
|
-
# content_type = ((payload[:headers]["action_controller.instance"].instance_variable_get :@_response).instance_variable_get :@header)["Content-Type"]
|
62
|
-
# content_type = content_type.split(";")[0]
|
63
|
-
|
64
60
|
response_time = finished-started
|
65
61
|
|
66
62
|
# Write to telegraf
|