From 223512cd7af07005985f427684bf85d6b4745e46 Mon Sep 17 00:00:00 2001 From: miyuko Date: Fri, 19 Jun 2026 02:02:44 +0100 Subject: [PATCH] Fix implicit `identity` Accept-Encoding handling. --- src/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.go b/src/http.go index f2b9d0e..3381e85 100644 --- a/src/http.go +++ b/src/http.go @@ -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))