mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
don't respond with 304 on error when debugging is enabled
This commit is contained in:
@@ -70,7 +70,8 @@ module.exports = function(request, response, result) {
|
||||
// handle etag caching
|
||||
var incoming_etag = request.headers["if-none-match"];
|
||||
// also respond with 304 on server error (use client's version)
|
||||
if (incoming_etag && (incoming_etag === etag || result.status === -1)) {
|
||||
// don't respond with 304 when debugging is enabled
|
||||
if (incoming_etag && (incoming_etag === etag || result.status === -1 && !config.server.debug_enabled)) {
|
||||
response.writeHead(304, headers);
|
||||
response.end();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user