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.
2 parents 8d3622b + 9087e43 commit cf5bc36Copy full SHA for cf5bc36
api/src/main/java/com/ning/http/client/RequestBuilderBase.java
@@ -459,8 +459,8 @@ private void resetMultipartData() {
459
}
460
461
private void checkIfBodyAllowed() {
462
- if ("GET".equals(request.method) || "HEAD".equals(request.method)) {
463
- 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.");
464
465
466
0 commit comments