This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Description
Global headers provided on client init do not work.
Reason: Every function call uses something like
{code}
var options = extend({ body: body, headers: {} }, opts)
{code}
i.e. forcefully defines a "headers" attribute. On the used "xtend" version of extend this is therefore overriding any global options set:
{code}
var options = extend({}, client._options, opts)
{code}
Resolution: Use version of "extend" supporting recursive extension.