mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-07-05 01:00:03 +02:00
Backport #26087 by @KN4CK3R Fixes #26022 - Fix handling of files with trailing slash - Fix handling of duplicate package file errors - Added test for both Co-authored-by: KN4CK3R <admin@oldschoolhack.me> (cherry picked from commit a424f6d4f8224ca7d5db1a27e1db46a5dc47f30b)
This commit is contained in:
parent
1cd4d4b00e
commit
4be3270e87
4 changed files with 67 additions and 47 deletions
|
@ -144,6 +144,10 @@ func TestPackageDebian(t *testing.T) {
|
|||
}
|
||||
return seen
|
||||
})
|
||||
|
||||
req = NewRequestWithBody(t, "PUT", uploadURL, createArchive(packageName, packageVersion, architecture))
|
||||
AddBasicAuthHeader(req, user.Name)
|
||||
MakeRequest(t, req, http.StatusBadRequest)
|
||||
})
|
||||
|
||||
t.Run("Download", func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue