lib/net/http-connection.js
Function _createRequest
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
HttpConnection.prototype._createRequest = function (options, callback) {
var request = http.request(options, function (res) {
if (logger.isDebugEnabled()) {
logger.debug('reading from %s\nstatus: %s\nheaders: %s',
this._config, res.statusCode, JSON.stringify(res.headers));