diff --git a/server/server.go b/server/server.go index ee2da76a..8e2f6992 100644 --- a/server/server.go +++ b/server/server.go @@ -1025,7 +1025,8 @@ func (s *Server) parsePublishParams(r *http.Request, m *message) (cache bool, fi } template = readBoolParam(r, false, "x-template", "template", "tpl") unifiedpush = readBoolParam(r, false, "x-unifiedpush", "unifiedpush", "up") // see GET too! - if unifiedpush { + contentEncoding := readParam(r, "content-encoding") + if unifiedpush || contentEncoding == "aes128gcm" { firebase = false unifiedpush = true }