mozilla-services / push-dev-dashboard

Developer dashboard for the Mozilla web push service
https://dev-dashboard.deis.dev.mozaws.net/
Mozilla Public License 2.0
7 stars 6 forks source link

Fix the bug where not all characters got URL encoded #237

Open thexeos opened 8 years ago

thexeos commented 8 years ago

When calling the delete_key_from_messages_api with instance.vapid_key containing characters, such as "/" (forward slash), the request returns MessagesAPIError, as the vapid_key is parsed literally.

quote(instance.vapid_key, safe='') ensures the forward slash is not skipped in encoding.