ocean-rails 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/ocean_application_controller.rb +1 -0
- data/lib/ocean/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: dced97fa25b511d01f96b24e8a5fe0a3f587caf5
|
4
|
+
data.tar.gz: e7a21398cb1d118186d518405e3191e67127285f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3f70a3eda31db61d5f8df4f576c3c629be6ce10ec6e9e17a74901b4e738a1937f18eae1dd559d89a4d23a8e1b2c832f900b410bc908b5e25c3bc2fd05e2110
|
7
|
+
data.tar.gz: b7d4a4f27e9aa7f016d2f2b3bf09e9c5a52cbb7f98f4c4b505473fe688715297cece1c47a7fa1a22bc57a288ec9169efd67d3bc6bbbad907f62e96279e81e30f
|
@@ -32,6 +32,7 @@ module OceanApplicationController
|
|
32
32
|
@x_api_token = request.headers['X-API-Token']
|
33
33
|
Thread.current[:x_api_token] = @x_api_token
|
34
34
|
@x_metadata = request.headers['X-Metadata']
|
35
|
+
@x_metadata = @x_metadata.to_s[0, 128] if @x_metadata
|
35
36
|
Thread.current[:metadata] = @x_metadata
|
36
37
|
return true if @x_api_token.present?
|
37
38
|
logger.info "X-API-Token missing"
|
data/lib/ocean/version.rb
CHANGED