mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Remove deprecated packages & staticcheck fixes (#22012)
`ioutil` is deprecated and should use `io` instead
This commit is contained in:
		@@ -22,7 +22,7 @@ func testSrcRouteRedirect(t *testing.T, session *TestSession, user, repo, route,
 | 
			
		||||
	resp := session.MakeRequest(t, req, http.StatusSeeOther)
 | 
			
		||||
 | 
			
		||||
	// Check Location header
 | 
			
		||||
	location := resp.HeaderMap.Get("Location")
 | 
			
		||||
	location := resp.Header().Get("Location")
 | 
			
		||||
	assert.Equal(t, path.Join(prefix, expectedLocation), location)
 | 
			
		||||
 | 
			
		||||
	// Perform redirect
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user