Skip to content

Commit

Permalink
Merge pull request #167 from bettyblocks/log-protocol-and-host
Browse files Browse the repository at this point in the history
Add console.log to display protocol and host
  • Loading branch information
emielwit authored Nov 20, 2023
2 parents 664593e + b513ea3 commit 1fbf93f
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 1fbf93f

Please sign in to comment.