Skip to content
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

Configurable request/response body in verbose #39

Conversation

mrajaian
Copy link
Contributor

No description provided.

@@ -189,7 +189,7 @@ protected void addVerbosePropertiesStart(final HttpServletRequest request, Strin
if (requestHeaders != null) {
this.properties.put(HttpVerbosePropertyKey.RequestHeaders.name(), requestHeaders);
}
if (requestBody != null) {
if (requestBody != null && !ConfigurationUtil.INSTANCE.allowHeadersAndResponseBodyOnly()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if (requestBody != null && ConfigurationUtil.INSTANCE.allowHeadersAndRequestBodyOnly()) is more appropriate.Otherwise, for not to dump request body, we need to set responseBodyOnly flag to true, which is bit confusing IMO. Check the the same in other places( Line 232 and 245)

@mrajaian mrajaian force-pushed the requestResponseInVerboseConfiguration branch from 54c89ea to 9e356c8 Compare September 13, 2017 13:58
@mrajaian
Copy link
Contributor Author

@mzemmour Please review

@ilayze ilayze merged commit 212e033 into foundation-runtime:master Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants