From b2c2bd1e4ba00bef9f5e4efe0f1d78e71ed2a403 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Sat, 28 May 2022 22:06:46 -0400 Subject: [PATCH] Remove "poll" alias for X-Poll-ID --- docs/publish.md | 1 + server/server.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/publish.md b/docs/publish.md index aaed159..5f0ae58 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 e7439f5..86ed753 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