mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
449811 handle unquoted etags when gzipping
This commit is contained in:
parent
d410fa57b5
commit
c9c6ec8d63
@ -256,8 +256,9 @@ public abstract class AbstractCompressedStream extends ServletOutputStream
|
|||||||
String etag=_wrapper.getETag();
|
String etag=_wrapper.getETag();
|
||||||
if (etag!=null)
|
if (etag!=null)
|
||||||
{
|
{
|
||||||
if (etag.charAt(0)=='"')
|
int end = etag.length()-1;
|
||||||
setHeader("ETag",etag.substring(0,etag.length()-1)+"--"+_encoding+'"');
|
if (etag.charAt(end)=='"')
|
||||||
|
setHeader("ETag",etag.substring(0,end)+"--"+_encoding+'"');
|
||||||
else
|
else
|
||||||
setHeader("ETag",etag+"--"+_encoding);
|
setHeader("ETag",etag+"--"+_encoding);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user