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

fix Django backend to correctly base64 encode attachments #91

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

pegler
Copy link
Contributor

@pegler pegler commented Mar 22, 2016

The API spec specifies attachments must be base64 encoded. This fixes the SparkPostMessage class to actually base64 attachments as well as an invalid test to verify the data is actually encoded property. This also deals with handling unicode attachments without UnicodeDecodeErrors

…ransmissions._translate_keys to parse from_email into a dict to avoid a server-side bug parsing the sending domain if there's an at symbol in the from name

define str_encoding and make flake8 happy

use reconfigure_settings in test_message so that DEFAULT_CHARSET is defined on the settings

normalize from_email

fixes and flakes

add test for unicode attachment in Django backend

flakes!

fix issue where from apparently doesnt need the address wrapper
@richleland richleland merged commit c4a194d into SparkPost:master Mar 29, 2016
@richleland
Copy link
Contributor

Thanks for the contribution @pegler!

@richleland richleland added this to the 1.1.0 milestone Mar 29, 2016
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.

2 participants