lib/connection.js
function setRequestHeaders(connection, req) {
  if(_.isObject(connection.headers)){
    req.set(connection.headers);
  }
}
function setRequestHeaders(connection, req) {
  if(_.isObject(connection.headers)){
    req.set(connection.headers);
  }
}
function setRequestHeaders ( connection , req ) { if ( _ . isObject ( connection . headers ) ) { req . set ( connection . headers ) ; } }
Sets headers on request object before issuing an HTTP request.
@param {Object} connection - Waterline connection configuration object
@param {Request} req - SuperAgent HTTP Request object
Sets headers on request object before issuing an HTTP request .