Fix implicit identity Accept-Encoding handling.

This commit is contained in:
miyuko
2026-06-19 02:02:44 +01:00
parent c2928f483f
commit 223512cd7a
+1 -1
View File
@@ -115,7 +115,7 @@ func (e *HTTPEncodings) Negotiate(offers ...string) string {
implicitIdentity = false
}
}
if _, ok := prefs["identity"]; ok && implicitIdentity {
if implicitIdentity {
prefs["identity"] = -1 // sort last
}
encs := make([]httpAcceptOffer, len(offers))