File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
api/src/main/java/org/asynchttpclient Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ public T setConnectionPoolKeyStrategy(ConnectionPoolKeyStrategy connectionPoolKe
614
614
}
615
615
616
616
public Request build () {
617
- if (( request .length < 0 ) && ( request .streamData == null ) && allowBody ( request . getMethod ()) ) {
617
+ if (request .length < 0 && request .streamData == null ) {
618
618
// can't concatenate content-length
619
619
String contentLength = null ;
620
620
if (request .headers != null && request .headers .isEmpty ()) {
@@ -635,10 +635,6 @@ public Request build() {
635
635
return request ;
636
636
}
637
637
638
- private boolean allowBody (String method ) {
639
- return !(method .equalsIgnoreCase ("GET" ) || method .equalsIgnoreCase ("OPTIONS" ) || method .equalsIgnoreCase ("TRACE" ) || method .equalsIgnoreCase ("HEAD" ));
640
- }
641
-
642
638
public T addOrReplaceCookie (Cookie cookie ) {
643
639
String cookieKey = cookie .getName ();
644
640
boolean replace = false ;
You can’t perform that action at this time.
0 commit comments