Skip to content
代码片段 群组 项目
提交 ef703d04 编辑于 作者: Vasilii Iakliushin's avatar Vasilii Iakliushin
浏览文件

Go-get: fix 401 error for unauthenticated requests

Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/493732

**Problem**

Self-managed instances that restricted password authentication for Git
over HTTP(S) started to receive 401 error code for `go-get=1` requests
from go toolchain.

The reason is a missing return for the case when request doesn't have
basic credentials.

It was introduced in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161162.

**Solution**

Restore check for missing basic credentials and add a test case.
上级 7c455e1f
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册