Skip to content

Commit 6a54723

Browse files
committed
Tweaks to x-powered-by header and sample test commands
1 parent e1a610b commit 6a54723

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ Implements the Expressjs Hello World example to provide faster start deploying o
1313

1414
- `npm start`
1515
- Browser: `http://localhost:3443/some/path?q=query+one&q=second+query&single=value`
16-
- Commandline: `curl -i -XGET "http://localhost:3443/cmd/line-curl"
17-
16+
- Commandline: `curl -i -XGET "http://localhost:3443/cmd/line-curl"`

app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ const express = require('express')
22
const app = express()
33

44
app.get('/', (req, res) => {
5+
console.log('[hello-world] root handler called')
56
res
6-
.set('x-powered-by', 'cyclic-express')
7+
.set('x-powered-by', 'cyclic.sh')
78
.send('Hello World!')
89
})
910

1011
app.use('*', (req,res) => {
12+
console.log('[hello-world] Star handler called')
1113
res
12-
.set('x-powered-by', 'cyclic-express')
14+
.set('x-powered-by', 'cyclic.sh')
1315
.json({
1416
msg: "Not strickly part of the hello world but you get the picture.",
1517
at: new Date().toISOString(),

0 commit comments

Comments
 (0)