Skip to content

Commit 4a26d28

Browse files
committedDec 11, 2014
Merge pull request #3 from venables/chore/remove-hide-powered-by
Remove `hidePoweredBy` middleware
2 parents a5a5788 + a4ca5d9 commit 4a26d28

File tree

4 files changed

+1
-54
lines changed

4 files changed

+1
-54
lines changed
 

‎README.md

-10
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ koa-helmet includes the following middleware:
1616
- `ienoopen` (X-Download-Options for IE8+)
1717
- `contentTypeOptions` (X-Content-Type-Options)
1818
- `cacheControl` (Cache-Control)
19-
- `hidePoweredBy` (remove X-Powered-By)
2019

2120
Installation
2221
------------
@@ -179,12 +178,3 @@ The following example sets the `Cache-Control` header to `no-store, no-cache`. T
179178
```javascript
180179
app.use(helmet.cacheControl());
181180
```
182-
183-
Hide X-Powered-By
184-
-----------------
185-
186-
This middleware will remove the `X-Powered-By` header if it is set.
187-
188-
```javascript
189-
app.use(helmet.hidePoweredBy());
190-
```

‎lib/middleware/hidePoweredBy.js

-11
This file was deleted.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "koa-helmet",
33
"author": "Matt Venables <mattvenables@gmail.com>",
44
"description": "Security header middleware collection for koa",
5-
"version": "0.0.1",
5+
"version": "0.0.2",
66
"keywords": [
77
"security",
88
"headers",

‎test/hidePoweredBy.js

-32
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.