"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java" between
httpcomponents-client-4.5.7-src.tar.gz and httpcomponents-client-4.5.8-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.

CachingExec.java  (httpcomponents-client-4.5.7-src):CachingExec.java  (httpcomponents-client-4.5.8-src)
skipping to change at line 757 skipping to change at line 757
final HttpRoute route, final HttpRoute route,
final HttpRequestWrapper request, final HttpRequestWrapper request,
final HttpClientContext context, final HttpClientContext context,
final HttpExecutionAware execAware, final HttpExecutionAware execAware,
final HttpCacheEntry cacheEntry) throws IOException, HttpException { final HttpCacheEntry cacheEntry) throws IOException, HttpException {
final HttpRequestWrapper conditionalRequest = conditionalRequestBuilder. buildConditionalRequest(request, cacheEntry); final HttpRequestWrapper conditionalRequest = conditionalRequestBuilder. buildConditionalRequest(request, cacheEntry);
final URI uri = conditionalRequest.getURI(); final URI uri = conditionalRequest.getURI();
if (uri != null) { if (uri != null) {
try { try {
conditionalRequest.setURI(URIUtils.rewriteURIForRoute(uri, route )); conditionalRequest.setURI(URIUtils.rewriteURIForRoute(uri, route , context.getRequestConfig().isNormalizeUri()));
} catch (final URISyntaxException ex) { } catch (final URISyntaxException ex) {
throw new ProtocolException("Invalid URI: " + uri, ex); throw new ProtocolException("Invalid URI: " + uri, ex);
} }
} }
Date requestDate = getCurrentDate(); Date requestDate = getCurrentDate();
CloseableHttpResponse backendResponse = backend.execute( CloseableHttpResponse backendResponse = backend.execute(
route, conditionalRequest, context, execAware); route, conditionalRequest, context, execAware);
Date responseDate = getCurrentDate(); Date responseDate = getCurrentDate();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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