       return
 
     requestConfig.url = "#{@options.baseUrl}/#{requestConfig.path}"
-    requestConfig.headers =
+    headers =
       Authorization: "token #{@token}"
+    requestConfig.headers = _.extend(headers, requestConfig.headers || {})
     request(requestConfig, (error, response, body) =>
       if error
         errorCallback?(error)

    @request({method: "GET", path: path}, successCallback, errorCallback)

  post: (path, body, successCallback, errorCallback) ->
    @request({method: "POST", path: path, body: JSON.stringify(body)}, successCallback, errorCallback)

  fetchAccessToken: ->


request = require("request")
_ = require("underscore")

module.exports = class LookerAPIClient

