@apollo/client 3.3.20 → 3.3.21

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.
@@ -1235,7 +1235,7 @@ var concat = ApolloLink.concat;
1235
1235
 
1236
1236
  var execute = ApolloLink.execute;
1237
1237
 
1238
- var version = '3.3.20';
1238
+ var version = '3.3.21';
1239
1239
 
1240
1240
  var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1241
1241
  function parseAndCheckHttpResponse(operations) {
@@ -1306,7 +1306,7 @@ var selectHttpOptionsAndBody = function (operation, fallbackConfig) {
1306
1306
  var options = tslib.__assign(tslib.__assign({}, fallbackConfig.options), { headers: fallbackConfig.headers, credentials: fallbackConfig.credentials });
1307
1307
  var http = fallbackConfig.http || {};
1308
1308
  configs.forEach(function (config) {
1309
- options = tslib.__assign(tslib.__assign(tslib.__assign({}, options), config.options), { headers: tslib.__assign(tslib.__assign({}, options.headers), config.headers) });
1309
+ options = tslib.__assign(tslib.__assign(tslib.__assign({}, options), config.options), { headers: tslib.__assign(tslib.__assign({}, options.headers), headersToLowerCase(config.headers)) });
1310
1310
  if (config.credentials)
1311
1311
  options.credentials = config.credentials;
1312
1312
  http = tslib.__assign(tslib.__assign({}, http), config.http);
@@ -1322,6 +1322,16 @@ var selectHttpOptionsAndBody = function (operation, fallbackConfig) {
1322
1322
  body: body,
1323
1323
  };
1324
1324
  };
1325
+ function headersToLowerCase(headers) {
1326
+ if (headers) {
1327
+ var normalized_1 = Object.create(null);
1328
+ Object.keys(Object(headers)).forEach(function (name) {
1329
+ normalized_1[name.toLowerCase()] = headers[name];
1330
+ });
1331
+ return normalized_1;
1332
+ }
1333
+ return headers;
1334
+ }
1325
1335
 
1326
1336
  var checkFetcher = function (fetcher) {
1327
1337
  if (!fetcher && typeof fetch === 'undefined') {