mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
1.4 KiB
JSON
1 line
1.4 KiB
JSON
|
{"ast":null,"code":"'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};","map":{"version":3,"sources":["/app/node_modules/axios/lib/helpers/normalizeHeaderName.js"],"names":["utils","require","module","exports","normalizeHeaderName","headers","normalizedName","forEach","processHeader","value","name","toUpperCase"],"mappings":"AAAA;;AAEA,IAAIA,KAAK,GAAGC,OAAO,CAAC,UAAD,CAAnB;;AAEAC,MAAM,CAACC,OAAP,GAAiB,SAASC,mBAAT,CAA6BC,OAA7B,EAAsCC,cAAtC,EAAsD;AACrEN,EAAAA,KAAK,CAACO,OAAN,CAAcF,OAAd,EAAuB,SAASG,aAAT,CAAuBC,KAAvB,EAA8BC,IAA9B,EAAoC;AACzD,QAAIA,IAAI,KAAKJ,cAAT,IAA2BI,IAAI,CAACC,WAAL,OAAuBL,cAAc,CAACK,WAAf,EAAtD,EAAoF;AAClFN,MAAAA,OAAO,CAACC,cAAD,CAAP,GAA0BG,KAA1B;AACA,aAAOJ,OAAO,CAACK,IAAD,CAAd;AACD;AACF,GALD;AAMD,CAPD","sourcesContent":["'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n"]},"metadata":{},"sourceType":"script"}
|