Skip to content

Commit d067014

Browse files
committed
Drop compatibility with node v0.10
1 parent 504e25a commit d067014

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- '0.10'
54
- '0.12'
65
- 'node'
76
after_script:

lib/request.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ Request.prototype._createReqRes = function () {
120120
if (HEADER_EXPR.test(param) || param === 'CONTENT_LENGTH' || param === 'CONTENT_TYPE') {
121121
var name = param.slice(5).replace(UNDERSCORE_EXPR, '-');
122122
var value = this.params[param];
123-
if (raw) {
124-
raw.push(name, value);
125-
}
123+
raw.push(name, value);
126124
this._req._addHeaderLine(name, value, dest);
127125
}
128126
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"license": "MIT",
1212
"main": "./index.js",
13-
"engines": { "node": ">= 0.10.5" },
13+
"engines": { "node": ">= 0.12" },
1414
"dependencies": {
1515
"fastcgi-stream": "^1.0.0"
1616
},

0 commit comments

Comments
 (0)