Read about our upcoming Code of Conduct on this issue

Commit 63a6453c authored by Adam Niedzielski's avatar Adam Niedzielski
Browse files

Use NamespaceValidator::WILDCARD_ROUTES in ETag caching middleware

NamespaceValidator::WILDCARD_ROUTES is less restrictive than
ProjectPathValidator::RESERVED and we really have to avoid only
routes that contain wildcard names.
parent da6016356d52
module Gitlab
module EtagCaching
class Middleware
RESERVED_WORDS = { |word| "/#{word}/" }.join('|')
RESERVED_WORDS = { |word| "/#{word}/" }.join('|')
ROUTE_REGEXP = Regexp.union(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment