Skip to content

Commit

Permalink
Merge 6fc727d into 1ee4a4f
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhftang committed Jun 26, 2018
2 parents 1ee4a4f + 6fc727d commit d7e3a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.js
Expand Up @@ -214,7 +214,7 @@ Node.prototype.prettyPrint = function (prefix, tail) {
function buildHandlers (handlers) {
var code = `handlers = handlers || {}
`
for (var i in http.METHODS) {
for (var i=0; i < http.METHODS.length; i++) {
var m = http.METHODS[i]
code += `this['${m}'] = handlers['${m}'] || null
`
Expand Down

0 comments on commit d7e3a3d

Please sign in to comment.