Skip to content
代码片段 群组 项目
未验证 提交 6b8a8160 编辑于 作者: Tiffany Rea's avatar Tiffany Rea 提交者: GitLab
浏览文件

Merge branch 'jmc-nightly-malformed-url' into 'master'

E2E test: fix path for relative url job

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167554



Merged-by: default avatarTiffany Rea <trea@gitlab.com>
Approved-by: default avatarJohn McDonnell <jmcdonnell@gitlab.com>
Approved-by: default avatarTiffany Rea <trea@gitlab.com>
Co-authored-by: default avatarJay McCure <jmccure@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -18,10 +18,10 @@ module QA ...@@ -18,10 +18,10 @@ module QA
# have to construct a malformed URL by building the request ourselves. # have to construct a malformed URL by building the request ourselves.
uri = URI.parse(address.address) uri = URI.parse(address.address)
http = Net::HTTP.new(uri.host + uri.path, uri.port) http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = (uri.scheme == 'https') http.use_ssl = (uri.scheme == 'https')
request = Net::HTTP::Get.new(path) request = Net::HTTP::Get.new(uri.path + path)
response = http.request(request) response = http.request(request)
# URL normalization in live environments can result in a 302 # URL normalization in live environments can result in a 302
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册