|
@@ -75,7 +75,6 @@ module.exports = function(req, res) {
|
|
|
}
|
|
|
logging.log("matches: " + matches);
|
|
|
logging.log("Etag: " + req.headers["if-none-match"]);
|
|
|
- logging.log("status: " + http_status);
|
|
|
sendimage(http_status, status, image);
|
|
|
} else {
|
|
|
logging.log("image not found, using default.");
|
|
@@ -93,6 +92,7 @@ module.exports = function(req, res) {
|
|
|
// custom images will not be
|
|
|
function handle_default(http_status, img_status) {
|
|
|
if (def && def != "steve" && def != "alex") {
|
|
|
+ logging.log("status: 301");
|
|
|
res.writeHead(301, {
|
|
|
"Cache-Control": "max-age=" + config.browser_cache_time + ", public",
|
|
|
"Response-Time": new Date() - start,
|
|
@@ -120,6 +120,7 @@ module.exports = function(req, res) {
|
|
|
}
|
|
|
|
|
|
function sendimage(http_status, img_status, image) {
|
|
|
+ logging.log("status: " + http_status);
|
|
|
res.writeHead(http_status, {
|
|
|
"Content-Type": "image/png",
|
|
|
"Cache-Control": "max-age=" + config.browser_cache_time + ", public",
|