457130 - HTTPS request with IP host and HTTP proxy throws IllegalArgumentException.
Fixed handling of cookies in case of null URI.
This commit is contained in:
parent
0aa6f1b706
commit
6861da11b9
|
@ -135,13 +135,12 @@ public abstract class HttpConnection implements Connection
|
|||
if (cookieStore != null)
|
||||
{
|
||||
URI uri = request.getURI();
|
||||
StringBuilder cookies = null;
|
||||
if (uri != null)
|
||||
{
|
||||
StringBuilder cookies = convertCookies(cookieStore.get(uri), null);
|
||||
cookies = convertCookies(request.getCookies(), cookies);
|
||||
if (cookies != null)
|
||||
request.header(HttpHeader.COOKIE.asString(), cookies.toString());
|
||||
}
|
||||
cookies = convertCookies(cookieStore.get(uri), null);
|
||||
cookies = convertCookies(request.getCookies(), cookies);
|
||||
if (cookies != null)
|
||||
request.header(HttpHeader.COOKIE.asString(), cookies.toString());
|
||||
}
|
||||
|
||||
// Authorization
|
||||
|
|
Loading…
Reference in New Issue