Closed therebelrobot closed 8 years ago
On line 82 in helpers.js
we see a variable being initialized every loop:
var header = this.parseHeaderLine(lines[i])
we should initialize outside and assign
You want to avoid using for x in y
because it's simply not optimized the variable is initialized every loop and you cannot avoid doing so:
as seen on line 159 of helpers.js
/Users/user/git/galileo-agent-node/lib/queue.js:190
responses.push(err.message)
^
TypeError: Cannot read property 'push' of undefined
at ClientRequest.<anonymous> (/Users/user/git/galileo-agent-node/lib/queue.js:190:16)
at ClientRequest.emit (events.js:107:17)
at Socket.socketErrorListener (_http_client.js:271:9)
at Socket.emit (events.js:107:17)
at net.js:459:14
at process._tickCallback (node.js:355:11)
The three comments above are taken care of in that last commit (if they were listed in the compare rather than comments they'd collapse :P )
Building off #24, this brings the agent up to galileo-agent-spec as of April 1 2016 1pm PT
changes