all repos — homestead @ 55ef97369397b9325c5a7d46b09c8f94434c528e

Code for my website

Log content encoding in all cases

Alan Pearce
commit

55ef97369397b9325c5a7d46b09c8f94434c528e

parent

81fff3a543e64da750aca20931df1c5d7027b0a6

1 file changed, 4 insertions(+), 1 deletion(-)

changed files
M src/app.tssrc/app.ts
@@ -176,6 +176,7 @@ ) {
metrics.requests.inc({ method: request.method, hostname, + content_encoding: contentEncoding, path: pathname, status_code: (status = 304), });
@@ -220,6 +221,7 @@ metrics.requests.inc({
method: request.method, hostname, path: pathname, + content_encoding: contentEncoding, status_code: (status = 302), }); return new Response("", {
@@ -232,6 +234,7 @@ metrics.requests.inc({
method: request.method, hostname, path: newpath, + content_encoding: contentEncoding, status_code: (status = 302), }); return new Response("", {
@@ -244,7 +247,7 @@ method: request.method,
hostname, path: pathname, status_code: (status = 404), - content_encoding: "identity", + content_encoding: contentEncoding, }); transaction.setHttpStatus(status); const notfound = files.get("/404.html");