We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc7442 commit 1b8db2dCopy full SHA for 1b8db2d
src/main/java/com/ning/http/client/RequestBuilderBase.java
@@ -492,8 +492,8 @@ private void resetMultipartData() {
492
}
493
494
private void checkIfBodyAllowed() {
495
- if ("GET".equals(request.method) || "HEAD".equals(request.method)) {
496
- throw new IllegalArgumentException("Can NOT set Body on HTTP Request Method GET nor HEAD.");
+ if ("HEAD".equals(request.method)) {
+ throw new IllegalArgumentException("Can NOT set Body on HTTP Request Method HEAD.");
497
498
499
0 commit comments