"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/impl/conn/DefaultRoutePlanner.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

DefaultRoutePlanner.java  (httpcomponents-client-4.5.6-src):DefaultRoutePlanner.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 95 skipping to change at line 95
host.getHostName(), host.getHostName(),
this.schemePortResolver.resolve(host), this.schemePortResolver.resolve(host),
host.getSchemeName()); host.getSchemeName());
} catch (final UnsupportedSchemeException ex) { } catch (final UnsupportedSchemeException ex) {
throw new HttpException(ex.getMessage()); throw new HttpException(ex.getMessage());
} }
} else { } else {
target = host; target = host;
} }
final boolean secure = target.getSchemeName().equalsIgnoreCase("https"); final boolean secure = target.getSchemeName().equalsIgnoreCase("https");
if (proxy == null) { return proxy == null
return new HttpRoute(target, local, secure); ? new HttpRoute(target, local, secure)
} else { : new HttpRoute(target, local, proxy, secure);
return new HttpRoute(target, local, proxy, secure);
}
} }
/** /**
* This implementation returns null. * This implementation returns null.
* *
* @throws HttpException may be thrown if overridden * @throws HttpException may be thrown if overridden
*/ */
protected HttpHost determineProxy( protected HttpHost determineProxy(
final HttpHost target, final HttpHost target,
final HttpRequest request, final HttpRequest request,
 End of changes. 1 change blocks. 
5 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)