Skip to content

Commit 0bb8830

Browse files
committed
Remove x-powered-by
1 parent 78cb457 commit 0bb8830

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ curl -v 'http://localhost:5002/links/5bfd55cfcb932f8781e74766/downloads/5c01d29b
5252
> Accept: */*
5353
>
5454
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< HTTP/1.1 200 OK
55-
< X-Powered-By: Express
5655
< Content-Type: application/zip
5756
< Content-Disposition: attachment; filename="l_stationtramv2_r27.shp.zip"
5857
< Date: Thu, 07 Feb 2019 15:34:36 GMT

lib/api/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const services = require('./providers/services')
1010
const app = express()
1111

1212
if (process.env.NODE_ENV === 'production') {
13+
app.disable('x-powered-by')
1314
app.set('trust proxy', true)
1415
app.use(morgan('combined'))
1516

0 commit comments

Comments
 (0)