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 d3aebfc commit 9087e43Copy full SHA for 9087e43
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