@influxdata/influxdb-client-browser 1.21.0 → 1.22.0-nightly.1688

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/influxdb.js CHANGED
@@ -1877,10 +1877,7 @@ var influxdb = (function (exports) {
1877
1877
  * ```
1878
1878
  */
1879
1879
  this.requestDecorator = function () { };
1880
- this.defaultHeaders = {
1881
- 'content-type': 'application/json; charset=utf-8',
1882
- // 'User-Agent': `influxdb-client-js/${CLIENT_LIB_VERSION}`, // user-agent can hardly be customized https://github.com/influxdata/influxdb-client-js/issues/262
1883
- };
1880
+ this.defaultHeaders = __assign({ 'content-type': 'application/json; charset=utf-8' }, connectionOptions.headers);
1884
1881
  if (this.connectionOptions.token) {
1885
1882
  this.defaultHeaders['Authorization'] =
1886
1883
  'Token ' + this.connectionOptions.token;
Binary file