mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 03:19:13 +00:00
477737 Improve handling of etags with dynamic and static gzip
Fixed spin on --gzip etag
This commit is contained in:
parent
67aee72bdd
commit
269ac1a44e
@ -420,10 +420,14 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory
|
||||
if (etag!=null)
|
||||
{
|
||||
int i=etag.indexOf(ETAG_GZIP_QUOTE);
|
||||
while (i>=0)
|
||||
if (i>0)
|
||||
{
|
||||
baseRequest.getHttpFields().put(new HttpField(HttpHeader.ETAG,etag.substring(0,i)+etag.substring(i+GzipHttpContent.ETAG_GZIP.length())));
|
||||
i=etag.indexOf(ETAG_GZIP_QUOTE,i);
|
||||
while (i>=0)
|
||||
{
|
||||
etag=etag.substring(0,i)+etag.substring(i+GzipHttpContent.ETAG_GZIP.length());
|
||||
i=etag.indexOf(ETAG_GZIP_QUOTE,i);
|
||||
}
|
||||
baseRequest.getHttpFields().put(new HttpField(HttpHeader.IF_NONE_MATCH,etag));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user