korlov42 commented on pull request #84: URL: https://github.com/apache/jclouds/pull/84#issuecomment-706289116
@nacx, for now, only GET and HEAD requests will be rejected if they have a body. But there is another validation that forced me to slightly modified the production code: rejecting requests without a body when the body is required (POST, PUT, PATCH and a few more). So, I've decided to rely on the internal method of okhttp (HttpMethod#requiresRequestBody) and generate an empty request body. You could see it [here](https://github.com/apache/jclouds/pull/84/files#diff-0669ed207d502fa8adc5114f1c4e8167R100). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org