Remove "poll" alias for X-Poll-ID

This commit is contained in:
Philipp Heckel 2022-05-28 22:06:46 -04:00
parent b003d79ae4
commit b2c2bd1e4b
2 changed files with 2 additions and 1 deletions

View File

@ -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-Cache` | `Cache` | Allows disabling [message caching](#message-caching) |
| `X-Firebase` | `Firebase` | Allows disabling [sending to Firebase](#disable-firebase) | | `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-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 | | `Authorization` | - | If supported by the server, you can [login to access](#authentication) protected topics |

View File

@ -581,7 +581,7 @@ func (s *Server) parsePublishParams(r *http.Request, v *visitor, m *message) (ca
firebase = false firebase = false
unifiedpush = true unifiedpush = true
} }
m.PollID = readParam(r, "x-poll-id", "poll-id", "poll") m.PollID = readParam(r, "x-poll-id", "poll-id")
if m.PollID != "" { if m.PollID != "" {
unifiedpush = false unifiedpush = false
cache = false cache = false