mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-28 11:07:09 -05:00
fix(proxy): fix codacy report in test
This commit is contained in:
1 parent
0a4bf452cd
commit
ae2116d2bc
1 file changed
+2
-2
@@ -236,7 +236,7 @@ var _ = Describe("Authenticating guest session requests", Label("Authentication"
|
||||
|
||||
guestGet := func(target string) *http.Request {
|
||||
req := httptest.NewRequest(http.MethodGet, target, http.NoBody)
|
||||
req.AddCookie(&http.Cookie{Name: cookieName, Value: "valid-guest-session"})
|
||||
req.AddCookie(getCookie("valid-guest-session"))
|
||||
return req
|
||||
}
|
||||
|
||||
@@ -402,7 +402,7 @@ var _ = Describe("Authenticating guest session requests", Label("Authentication"
|
||||
|
||||
It("authenticates a TUS upload creation with an unusable Authorization header as the guest", func() {
|
||||
req := httptest.NewRequest(http.MethodPost, "http://example.com/dav/spaces/space-id/", http.NoBody)
|
||||
req.AddCookie(&http.Cookie{Name: cookieName, Value: "valid-guest-session"})
|
||||
req.AddCookie(getCookie("valid-guest-session"))
|
||||
req.Header.Set(_headerAuthorization, "undefined")
|
||||
req.Header.Set("Tus-Resumable", "1.0.0")
|
||||
rr, seen := serve(req)
|
||||
|
||||
Reference in new issue
Block a user