@supabase/storage-js 2.102.0-canary.1 → 2.102.0-canary.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/dist/index.cjs CHANGED
@@ -367,7 +367,7 @@ var BaseApiClient = class {
367
367
  constructor(url, headers = {}, fetch$1, namespace = "storage") {
368
368
  this.shouldThrowOnError = false;
369
369
  this.url = url;
370
- this.headers = headers;
370
+ this.headers = Object.fromEntries(Object.entries(headers).map(([k, v]) => [k.toLowerCase(), v]));
371
371
  this.fetch = resolveFetch(fetch$1);
372
372
  this.namespace = namespace;
373
373
  }
@@ -390,7 +390,7 @@ var BaseApiClient = class {
390
390
  * @returns this - For method chaining
391
391
  */
392
392
  setHeader(name, value) {
393
- this.headers = _objectSpread2(_objectSpread2({}, this.headers), {}, { [name]: value });
393
+ this.headers = _objectSpread2(_objectSpread2({}, this.headers), {}, { [name.toLowerCase()]: value });
394
394
  return this;
395
395
  }
396
396
  /**
@@ -1432,7 +1432,7 @@ var StorageFileApi = class extends BaseApiClient {
1432
1432
 
1433
1433
  //#endregion
1434
1434
  //#region src/lib/version.ts
1435
- const version = "2.102.0-canary.1";
1435
+ const version = "2.102.0-canary.2";
1436
1436
 
1437
1437
  //#endregion
1438
1438
  //#region src/lib/constants.ts