-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
413 behavior #28
Comments
Current state of things:
My original intent goal when writing the spec was - return 413 if it's too long, and anything under [4096] cannot be too long. After some discussions, what was actually written was 413 MAY be returned if over 4096. This put the app server in charge of keeping the payload under 4096 by implying unintended consequences. Going ForwardI now see three main approaches to sort out this disparity.
This is what WebPush (RFC8030) does, quite similar to 1: |
The WebPush RFC looks like the 3rd option to me 🤔 We can do the same thing actually:
|
What you said: In my opinion, the following version of that would be the best: ReasoningThis sets a 'recommended' max size. Providers are free to set their size to whatever they want (>=4096). If, for whatever reason, an application could benefit from sending a 5000 byte push notification, this scheme allows it to do so with relative ease. It can send a 5000 byte push, and for providers where there's a 4096 limit, it MUST receive a 413 on a size issue. Then, it can send a smaller push to providers where the limit is 4096. While I don't see any immediate use for such a capability, keeping options open for app servers can't hurt. The only downside (in my knowledge) to this idea is that ntfy will have to be changed. |
see discussion in #unifiedpush-devs:matrix.org. Will post more details and ideas soon.
The text was updated successfully, but these errors were encountered: