Update README.md

In example part,   
vapid_claims={
                "sub": "YourNameHere@example.org",
            }
It will lead to an error which lacks "mailto" fields.
This commit is contained in:
WU731642061 2018-03-08 17:20:34 +08:00 committed by GitHub
parent c18413fb47
commit 971409ea1f
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ try:
data="Mary had a little lamb, with a nice mint jelly",
vapid_private_key="path/to/vapid_private.pem",
vapid_claims={
"sub": "YourNameHere@example.org",
"sub": "mailto:YourNameHere@example.org",
}
)
except WebPushException as ex: