mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Adding ESLint
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
var utils = require('./../utils');
|
||||
|
||||
/**
|
||||
@@ -16,9 +14,10 @@ var utils = require('./../utils');
|
||||
* @returns {Object} Headers parsed into an object
|
||||
*/
|
||||
module.exports = function parseHeaders(headers) {
|
||||
'use strict';
|
||||
var parsed = {}, key, val, i;
|
||||
|
||||
if (!headers) return parsed;
|
||||
if (!headers) { return parsed; }
|
||||
|
||||
utils.forEach(headers.split('\n'), function(line) {
|
||||
i = line.indexOf(':');
|
||||
@@ -31,4 +30,4 @@ module.exports = function parseHeaders(headers) {
|
||||
});
|
||||
|
||||
return parsed;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user