Skip to content

Copy subscription before altering the keys.#84

Merged
jrconlin merged 1 commit into
web-push-libs:masterfrom
Chris-V:clone_subscriptions
Jan 3, 2018
Merged

Copy subscription before altering the keys.#84
jrconlin merged 1 commit into
web-push-libs:masterfrom
Chris-V:clone_subscriptions

Conversation

@Chris-V
Copy link
Copy Markdown
Contributor

@Chris-V Chris-V commented Jan 3, 2018

Altering subscriptions reference by changing the keys from string to
byte causes hard to debug issues in libraries. For exemple, trying to
call json.dumps() after initializing WebPusher throws an error
because json cannot handle bytes.

@Chris-V Chris-V force-pushed the clone_subscriptions branch 4 times, most recently from c0ec898 to 2e95413 Compare January 3, 2018 19:58
Altering subscriptions reference by changing the keys from string to
byte causes hard to debug issues in libraries. For exemple, trying to
call `json.dumps()` after initializing `WebPusher` throws an error
because json cannot handle bytes.
Copy link
Copy Markdown
Member

@jrconlin jrconlin left a comment

Choose a reason for hiding this comment

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

crap. This is exactly the sort of thing I yell about myself. Thanks!

@jrconlin jrconlin merged commit 3c91545 into web-push-libs:master Jan 3, 2018
@balloob
Copy link
Copy Markdown

balloob commented Jan 6, 2018

Any chance this could be released to PyPi?

@Chris-V Chris-V deleted the clone_subscriptions branch January 6, 2018 04:13
@balloob
Copy link
Copy Markdown

balloob commented Jan 7, 2018

Thanks! ❤️

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.

3 participants