Download node_modules/axios/lib/helpers/normalizeHeaderName.js from xxsxx/cld: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/axios/lib/helpers/normalizeHeaderName.js
- Command line
-
hf download hf://spaces/xxsxx/cld/node_modules/axios/lib/helpers/normalizeHeaderName.js
-
curl -L -o normalizeHeaderName.js https://huggingface.co/spaces/xxsxx/cld/resolve/main/node_modules/axios/lib/helpers/normalizeHeaderName.js
357 Bytes
| ; | |
| var utils = require('../utils'); | |
| module.exports = function normalizeHeaderName(headers, normalizedName) { | |
| utils.forEach(headers, function processHeader(value, name) { | |
| if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { | |
| headers[normalizedName] = value; | |
| delete headers[name]; | |
| } | |
| }); | |
| }; | |