hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Moore (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCLIENT-985) cache module should populate Via header to capture upstream and downstream protocols
Date Thu, 02 Sep 2010 14:43:55 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jonathan Moore updated HTTPCLIENT-985:

    Attachment: via-header.patch

I've uploaded a patch that fixes this issue, including unit tests. One area for discussion
is how to populate the comment section of the Via header (if we want to include one). Currently
the implementation follows the format of the User-Agent set by DefaultHttpClient, so:

Via: 1.1 localhost (Apache-HttpClient/4.1-alpha3-SNAPSHOT (cache))

This patch is contributed with the permission of my employer.

> cache module should populate Via header to capture upstream and downstream protocols
> ------------------------------------------------------------------------------------
>                 Key: HTTPCLIENT-985
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-985
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: Cache
>    Affects Versions: 4.1 Alpha2
>            Reporter: Jonathan Moore
>         Attachments: via-header.patch
> Because the cache module is currently implemented as a decorator that behaves like a
transparent caching proxy, we need it to correctly populate the Via header so that we can
preserve the record of which protocol versions were used upstream and downstream from the
caching module.
> This is a MUST per the RFC:
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.45

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message