posthog-js 1.155.0 → 1.155.2

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-js",
3
- "version": "1.155.0",
3
+ "version": "1.155.2",
4
4
  "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
5
5
  "repository": "https://github.com/PostHog/posthog-js",
6
6
  "author": "hey@posthog.com",
@@ -504,7 +504,7 @@ var PostHog = /** @class */ (function () {
504
504
  // Whether to detect ip info or not
505
505
  ip: this.config.ip ? 1 : 0,
506
506
  });
507
- options.headers = this.config.request_headers;
507
+ options.headers = __assign({}, this.config.request_headers);
508
508
  options.compression = options.compression === 'best-available' ? this.compression : options.compression;
509
509
  request(__assign(__assign({}, options), { callback: function (response) {
510
510
  var _a, _b, _c;