mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 12:28:01 +08:00
Added content-type to Access-Control-Allow-Headers needed for playground preflight
Signed-off-by: Catalin Hofnar <catalin.hofnar@gmail.com>
This commit is contained in:
committed by
Andrei Aaron
parent
2929a62998
commit
74630ed3a0
@@ -269,7 +269,7 @@ func TestHtpasswdSingleCred(t *testing.T) {
|
||||
So(resp, ShouldNotBeNil)
|
||||
So(resp.StatusCode(), ShouldEqual, http.StatusOK)
|
||||
|
||||
header := []string{"Authorization"}
|
||||
header := []string{"Authorization,content-type"}
|
||||
|
||||
resp, _ = resty.R().SetBasicAuth(user, password).Options(baseURL + "/v2/")
|
||||
So(resp, ShouldNotBeNil)
|
||||
|
||||
Reference in New Issue
Block a user