Skip to content
代码片段 群组 项目
未验证 提交 2aff3717 编辑于 作者: Hitesh Raghuvanshi's avatar Hitesh Raghuvanshi 提交者: GitLab
浏览文件

Merge branch '438558-remove-referer-from-version-check' into 'master'

未找到相关分支
未找到相关标签
无相关合并请求
...@@ -45,10 +45,6 @@ def self.data ...@@ -45,10 +45,6 @@ def self.data
{ version: Gitlab::VERSION } { version: Gitlab::VERSION }
end end
def self.headers
{ "REFERER": Gitlab.config.gitlab.url }
end
def self.url def self.url
encoded_data = Base64.urlsafe_encode64(data.to_json) encoded_data = Base64.urlsafe_encode64(data.to_json)
...@@ -68,7 +64,7 @@ def id ...@@ -68,7 +64,7 @@ def id
end end
def calculate_reactive_cache(*) def calculate_reactive_cache(*)
response = Gitlab::HTTP.try_get(self.class.url, headers: self.class.headers) response = Gitlab::HTTP.try_get(self.class.url)
case response&.code case response&.code
when 200 when 200
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
想要评论请 注册