@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2002 - 2018 the original author or authors .
* Copyright 2002 - 2020 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -22,6 +22,7 @@ import java.net.URLDecoder;
@@ -22,6 +22,7 @@ import java.net.URLDecoder;
import java.nio.charset.Charset ;
import java.nio.charset.StandardCharsets ;
import java.util.ArrayList ;
import java.util.Collections ;
import java.util.Enumeration ;
import java.util.List ;
import java.util.Locale ;
@ -291,9 +292,7 @@ final class HtmlUnitRequestBuilder implements RequestBuilder, Mergeable {
@@ -291,9 +292,7 @@ final class HtmlUnitRequestBuilder implements RequestBuilder, Mergeable {
Cookie [ ] parentCookies = request . getCookies ( ) ;
if ( parentCookies ! = null ) {
for ( Cookie cookie : parentCookies ) {
cookies . add ( cookie ) ;
}
Collections . addAll ( cookies , parentCookies ) ;
}
if ( ! ObjectUtils . isEmpty ( cookies ) ) {