bt-core-app 1.4.279 → 1.4.280

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.
@@ -7765,13 +7765,15 @@ function fw(e) {
7765
7765
  async function m(h) {
7766
7766
  const g = h.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
7767
7767
  let d = h.finalUrl, C = h.headers;
7768
- if (d == null && (d = a(h)), h.overrideHeaders !== !0 && (h.contentType = "multipart/form-data", C = t(h)), r != null && r.isDemoing.value)
7768
+ if (d == null && (d = a(h)), h.overrideHeaders !== !0 && (C = t(h)), r != null && r.isDemoing.value)
7769
7769
  return console.log(`DEMO: Uploading image to ${d}`), r.post(h);
7770
7770
  console.log(`Upload image to ${d}`);
7771
7771
  let S;
7772
7772
  try {
7773
7773
  const T = new FormData(), x = Jb(h.data);
7774
- if (T.append("file", x), S = await fetch(d, {
7774
+ T.append("file", x);
7775
+ const w = { ...C };
7776
+ if (delete w["Content-Type"], C = new Headers(w), S = await fetch(d, {
7775
7777
  method: "POST",
7776
7778
  mode: "cors",
7777
7779
  cache: "no-cache",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.279",
3
+ "version": "1.4.280",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {