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
If the request body contains a % (e.g. because it has urlencoded form data) then the debug logger attempts to interpret the body as a format string with no params, because it uses Logger.Debugf which uses Printf. This causes the output to show printf errors.
You end up with something malformed in the debug output like this
This is bad because the whole point of the debug output is to show what is going out on the wire, and this does not correctly represent what's going on the wire.
I will submit a PR
The text was updated successfully, but these errors were encountered:
kmanley
pushed a commit
to kmanley/resty
that referenced
this issue
Sep 10, 2019
If the request body contains a % (e.g. because it has urlencoded form data) then the debug logger attempts to interpret the body as a format string with no params, because it uses Logger.Debugf which uses Printf. This causes the output to show printf errors.
You end up with something malformed in the debug output like this
This is bad because the whole point of the debug output is to show what is going out on the wire, and this does not correctly represent what's going on the wire.
I will submit a PR
The text was updated successfully, but these errors were encountered: