暂时屏蔽304
This commit is contained in:
@@ -704,8 +704,8 @@ public class HttpResponse extends Response<HttpContext, HttpRequest> {
|
|||||||
final String match = request.getHeader("If-None-Match");
|
final String match = request.getHeader("If-None-Match");
|
||||||
final String etag = (file == null ? 0L : file.lastModified()) + "-" + length;
|
final String etag = (file == null ? 0L : file.lastModified()) + "-" + length;
|
||||||
if (match != null && etag.equals(match)) {
|
if (match != null && etag.equals(match)) {
|
||||||
finish304();
|
//finish304();
|
||||||
return;
|
//return;
|
||||||
}
|
}
|
||||||
this.contentLength = length;
|
this.contentLength = length;
|
||||||
if (filename != null && !filename.isEmpty() && file != null) {
|
if (filename != null && !filename.isEmpty() && file != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user