projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20978: Merge branch 'main' into 20978-instance-types
[arvados.git]
/
services
/
api
/
config
/
initializers
/
request_id_middleware.rb
diff --git
a/services/api/config/initializers/request_id_middleware.rb
b/services/api/config/initializers/request_id_middleware.rb
index e2158801e7618ba47dd756c55d497f17c6616679..cfb018ca9705dcc18a2ee53defbd9468a33d2a90 100644
(file)
--- a/
services/api/config/initializers/request_id_middleware.rb
+++ b/
services/api/config/initializers/request_id_middleware.rb
@@
-14,7
+14,7
@@
module CustomRequestId
end
def internal_request_id
end
def internal_request_id
- "req-" + Random
::DEFAULT
.rand(2**128).to_s(36)[0..19]
+ "req-" + Random
.new
.rand(2**128).to_s(36)[0..19]
end
end
end
end
@@
-22,4
+22,4
@@
class ActionDispatch::RequestId
# Instead of using the default UUID-like format for X-Request-Id headers,
# use our own.
prepend CustomRequestId
# Instead of using the default UUID-like format for X-Request-Id headers,
# use our own.
prepend CustomRequestId
-end
\ No newline at end of file
+end