mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
14 lines
244 B
Ruby
14 lines
244 B
Ruby
module Gitlab
|
|
module Middleware
|
|
class Timeout < Rack::Timeout
|
|
GRACK_REGEX = /[-\/\w\.]+\.git\//.freeze
|
|
|
|
def call(env)
|
|
return @app.call(env) if env['PATH_INFO'] =~ GRACK_REGEX
|
|
|
|
super
|
|
end
|
|
end
|
|
end
|
|
end
|