Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

bug: include crypto-key when routing & storing messages #361

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

jrconlin
Copy link
Member

Closes #355

@bbangert r?

@bbangert
Copy link
Member

r+

bbangert added a commit that referenced this pull request Feb 22, 2016
bug: include crypto-key when routing & storing messages
@bbangert bbangert merged commit 9a43eb6 into master Feb 22, 2016
@bbangert bbangert deleted the bug/crypto-key branch February 22, 2016 21:51
# they're present to avoid empty strings.
for name in ["encryption-key", "crypto-key"]:
if name in headers:
data[name] = headers[name]

Choose a reason for hiding this comment

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

Perhaps should it be modified to data[name.replace('-', '_')] = headers[name]?

Copy link
Member Author

Choose a reason for hiding this comment

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

The - to _ is more for logs than for data exchange. These values need to stay consistent between routing and eventual delivery to clients. Changing these values here could break dependency outside of the app.

Still, nice spotting. Thanks!

Copy link

Choose a reason for hiding this comment

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

@tomoyukilabs You actually spotted a bug. As currently written, this will break data delivery for all clients. Thanks for catching that, and your comment on Bugzilla! 👀 I'll send a PR soon.

@ghost ghost mentioned this pull request Feb 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants