You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly this is a contradiction, so the condition itself is a tautology. The true branch is taken and Zappa will always base64 encode responses.
It seems that the intention of the condition is to NOT base64 encode responses that are text (but to take a conservative approach to determine what is "text").
It seems that what we want is to NOT base64 encode when this condition is true:
Originally from: Miserlou/Zappa#1605 by joeldentici
It seems that Zappa always responds with a base64 encoded string for the response body and "isBase64Encoded" set to true.
The relevant file is the "handler.py" file provided/generated by Zappa.
On line 513, we have this if statement:
The condition's negation is:
Clearly this is a contradiction, so the condition itself is a tautology. The true branch is taken and Zappa will always base64 encode responses.
It seems that the intention of the condition is to NOT base64 encode responses that are text (but to take a conservative approach to determine what is "text").
It seems that what we want is to NOT base64 encode when this condition is true:
If this is the case, the condition starting on line 513 should instead be:
I noticed this while using Zappa 0.46.2
The text was updated successfully, but these errors were encountered: