-
Notifications
You must be signed in to change notification settings - Fork 85
Fix for text/* Issue: Check if the instance is a string prior to running b64encode to allow… #91
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
Conversation
… for text/* types on Django without manually attaching
|
Hey Derrick, thanks for this! Can you provide some more context? Is there an exception or bug happening without this patch? Is a regression test possible for this patch? |
Great questions! So originally I was trying to send a CSV generated from Because of the new structure, Originally tried running encode on the string before calling the library but the bytes sent were the converted to the same structure. |
|
Got it. If you can send some code steps to reproduce that would be cool. I want to replicate this and probably get a test in if it's merged. |
|
Here is some similar code to what I was running Code Run: Error thrown: CSV: |
|
Thanks! I'll add a test to this upstream. |
… for text/* types on Django without manually attaching