Fix for text/* Issue: Check if the instance is a string prior to running b64encode to allow…#91
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