function createHeadersLenient$5(obj) {
	const headers = new Headers$6();
	for (const name of Object.keys(obj)) {
		if (invalidTokenRegex$5.test(name)) {
			continue;
		}
		if (Array.isArray(obj[name])) {
			for (const val of obj[name]) {
				if (invalidHeaderCharRegex$5.test(val)) {
					continue;
				}
				if (headers[MAP$5][name] === undefined) {
					headers[MAP$5][name] = [val];
				} else {
					headers[MAP$5][name].push(val);
				}
			}
		} else if (!invalidHeaderCharRegex$5.test(obj[name])) {
			headers[MAP$5][name] = [obj[name]];
		}
	}
	return headers;
}
Create a Headers object from an object of headers, ignoring those that do
not conform to HTTP grammar productions.

@param   Object  obj  Object of headers
@return  Headers