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

Allow to override body permissions checks in custom methods #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zmarkan
Copy link
Owner

@zmarkan zmarkan commented Dec 9, 2016

No description provided.

@@ -42,7 +42,7 @@ public CallServerInterceptor(boolean forWebSocket) {
long sentRequestMillis = System.currentTimeMillis();
httpCodec.writeRequestHeaders(request);

if (HttpMethod.permitsRequestBody(request.method()) && request.body() != null) {
if (request.isCustomMethod() || HttpMethod.permitsRequestBody(request.method()) && request.body() != null) {

Choose a reason for hiding this comment

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

request.body() != null && (request.isCustomMethod() || HttpMethod.permitsRequestBody(request.method()))

@@ -69,6 +71,10 @@ public Object tag() {
return tag;
}

public boolean bodyForcedlyAllowed() {

Choose a reason for hiding this comment

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

isBodyForcedlyAllowed is is more Javish.

@zmarkan zmarkan force-pushed the custom_methods_with_body branch 3 times, most recently from 8cc3133 to b8059ee Compare December 12, 2016 17:00
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.

2 participants