mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix handling of Debian files with trailing slash (#26087)
Fixes #26022 - Fix handling of files with trailing slash - Fix handling of duplicate package file errors - Added test for both
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user