@electric-sql/client 1.2.0 → 1.2.1

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/index.mjs CHANGED
@@ -1660,10 +1660,13 @@ requestShapeSSE_fn = function(opts) {
1660
1660
  const { fetchUrl, requestAbortController, headers } = opts;
1661
1661
  const fetch2 = __privateGet(this, _sseFetchClient);
1662
1662
  __privateSet(this, _lastSseConnectionStartTime, Date.now());
1663
+ const sseHeaders = __spreadProps(__spreadValues({}, headers), {
1664
+ Accept: `text/event-stream`
1665
+ });
1663
1666
  try {
1664
1667
  let buffer = [];
1665
1668
  yield fetchEventSource(fetchUrl.toString(), {
1666
- headers,
1669
+ headers: sseHeaders,
1667
1670
  fetch: fetch2,
1668
1671
  onopen: (response) => __async(this, null, function* () {
1669
1672
  __privateSet(this, _connected, true);