mozilla-services / autopush

Python Web Push Server used by Mozilla
https://autopush.readthedocs.io/
Mozilla Public License 2.0
217 stars 34 forks source link

fix: Return HTTP 202 if the WebPush message is stored instead of delivered #1428

Closed AzureMarker closed 4 years ago

AzureMarker commented 4 years ago

Description

The intended behavior of the WebPush router is to return HTTP 201 if the message was directly delivered to the node, or HTTP 202 if the message could not be directly delivered and was instead stored for later delivery. The code was incorrectly returning 201 for both cases.

Testing

Tests have been updated, and should pass.

Issue(s)

N/A