optimize request URL encoding for internode (#10811)

this reduces allocations in order of magnitude

Also, revert "erasure: delete dangling objects automatically (#10765)" 
affects list caching should be investigated.
This commit is contained in:
Harshavardhana
2020-11-02 15:15:12 -08:00
committed by GitHub
parent b456292295
commit 8527f22df1
4 changed files with 8 additions and 25 deletions

View File

@@ -81,7 +81,7 @@ func storageServerRequestValidate(r *http.Request) error {
return errAuthentication
}
if claims.Audience != r.URL.Query().Encode() {
if claims.Audience != r.URL.RawQuery {
return errAuthentication
}