diff --git a/docs/publish.md b/docs/publish.md index aaed1593..5f0ae585 100644 --- a/docs/publish.md +++ b/docs/publish.md @@ -2782,4 +2782,5 @@ and can be passed as **HTTP headers** or **query parameters in the URL**. They a | `X-Cache` | `Cache` | Allows disabling [message caching](#message-caching) | | `X-Firebase` | `Firebase` | Allows disabling [sending to Firebase](#disable-firebase) | | `X-UnifiedPush` | `UnifiedPush`, `up` | [UnifiedPush](#unifiedpush) publish option, only to be used by UnifiedPush apps | +| `X-Poll-ID` | `Poll-ID` | Internal parameter, used for [iOS push notifications](config.md#ios-instant-notifications) | | `Authorization` | - | If supported by the server, you can [login to access](#authentication) protected topics | diff --git a/server/server.go b/server/server.go index e7439f55..86ed7539 100644 --- a/server/server.go +++ b/server/server.go @@ -581,7 +581,7 @@ func (s *Server) parsePublishParams(r *http.Request, v *visitor, m *message) (ca firebase = false unifiedpush = true } - m.PollID = readParam(r, "x-poll-id", "poll-id", "poll") + m.PollID = readParam(r, "x-poll-id", "poll-id") if m.PollID != "" { unifiedpush = false cache = false