Skip to content

Commit

Permalink
Add console.log to display protocol and host
Browse files Browse the repository at this point in the history
information
  • Loading branch information
emielwit committed Nov 20, 2023
1 parent fe2b4f4 commit b513ea3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const serve = (request, response, file) => {
}
} else {
const hostname = `${request.protocol}://${request.headers.host}`;
console.log({ protocol: request.protocol, host: request.headers.host });
const json = content
.toString()
.replaceAll(HOST, hostname)
Expand Down

0 comments on commit b513ea3

Please sign in to comment.