File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/main/java/com/ning/http/client Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -624,7 +624,7 @@ public T setConnectionPoolKeyStrategy(ConnectionPoolKeyStrategy connectionPoolKe
624
624
}
625
625
626
626
public Request build () {
627
- if (( request .length < 0 ) && ( request .streamData == null ) && allowBody ( request . getMethod ()) ) {
627
+ if (request .length < 0 && request .streamData == null ) {
628
628
// can't concatenate content-length
629
629
String contentLength = request .headers .getFirstValue ("Content-Length" );
630
630
@@ -639,10 +639,6 @@ public Request build() {
639
639
return request ;
640
640
}
641
641
642
- private boolean allowBody (String method ) {
643
- return !(method .equalsIgnoreCase ("GET" ) || method .equalsIgnoreCase ("OPTIONS" ) || method .equalsIgnoreCase ("TRACE" ) || method .equalsIgnoreCase ("HEAD" ));
644
- }
645
-
646
642
public T addOrReplaceCookie (Cookie cookie ) {
647
643
String cookieKey = cookie .getName ();
648
644
boolean replace = false ;
You can’t perform that action at this time.
0 commit comments