Skip to content
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

Updates. #2

Merged
merged 2 commits into from
Mar 17, 2021
Merged

Updates. #2

merged 2 commits into from
Mar 17, 2021

Conversation

b4handjr
Copy link
Owner

@b4handjr b4handjr commented Mar 9, 2021

No description provided.

Dockerfile Outdated
@@ -0,0 +1,18 @@
FROM alpine:latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to use python:3-alpine (which I think currently is tied to python 3.9 and alpine 3.13. It would save you a few of the following steps.

headers=headers,
data=base64.urlsafe_b64decode(encrypted_data[0]),
ssl=False,
) as conn:
assert conn.status == 201
assert conn.status == 201 or 202
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to revisit this in the future.

There was an issue filed on Autopush a while ago noting that the RFC specification says to return 201 unless there's a receipt associated (we ignore receipt requests so basically, we shouldn't return 202). This changed the "legacy" mode where we returned 202 if a subscription was stored instead of delivered, which, in retrospect, was a terrible idea anyway.

This change is still percolating though distribution (including on the autopush-rs side).

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I will file an issue.

@b4handjr b4handjr merged commit 632ae57 into initial_commit Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants