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

Allow empty sns Subject #240

Merged
merged 2 commits into from
Jul 4, 2018
Merged

Allow empty sns Subject #240

merged 2 commits into from
Jul 4, 2018

Conversation

tcql
Copy link
Contributor

@tcql tcql commented Jul 2, 2018

Currently, If an SNS message is sent with no Subject parameter, the $Subject in the worker script is set to the literal word "undefined". This could be breaking for stacks that respond to multiple Subject values that expect an empty/default subject value to be an unset variable; this was the old behaviour

cc @jakepruitt @rclark

Copy link

@jakepruitt jakepruitt left a comment

Choose a reason for hiding this comment

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

Nice catch @tcql! Mind adding a quick test to make sure we don't regress this behavior again?

@tcql
Copy link
Contributor Author

tcql commented Jul 2, 2018

hah was already on that @jakepruitt but you reviewed faster than i could write the test! you're fast ⚡️

@arunasank arunasank merged commit f3fdc5f into master Jul 4, 2018
@arunasank arunasank deleted the empty-subjects branch July 4, 2018 02:52
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