Merge pull request #1312 from vkrause/work/vkrause/detect-encrypted-messages-as-unified-push

Consider aes128gcm content encoding as an indicator for UnifiedPush
This commit is contained in:
Philipp C. Heckel 2025-05-21 19:16:17 -04:00 committed by GitHub
commit bd4b5e9e1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}