-
Notifications
You must be signed in to change notification settings - Fork 192
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 response log obfuscation #64
Conversation
cdb1d08
to
c006435
Compare
@@ -49,17 +49,19 @@ function obfuscateResponse(request, instance) { | |||
return; | |||
} | |||
|
|||
request.body = JSON.parse(request.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pedrobranco shouldn't we be keeping the same string as before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest passing the parsed body as an argument instead of mutating request.body
here. I would then stringify the resulting (mutated) body
object at the end of the method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sure.
c006435
to
63043a1
Compare
Closes #63.