function parseAcceptCharset(accept) {
  const accepts = accept.split(",");
  const parsedAccepts = [];
  for (let i = 0; i < accepts.length; i++) {
    const charset = parseCharset(accepts[i].trim(), i);
    if (charset) {
      parsedAccepts.push(charset);
    }
  }
  return parsedAccepts;
}
/**
 * Parse the Accept-Charset header.
 */
Parse the Accept-Charset header.
Parse the Accept - Charset header .
function parseAcceptCharset(accept) {
  const accepts = accept.split(",");
  const parsedAccepts = [];
  for (let i = 0; i < accepts.length; i++) {
    const charset = parseCharset(accepts[i].trim(), i);
    if (charset) {
      parsedAccepts.push(charset);
    }
  }
  return parsedAccepts;
}
function parseAcceptCharset ( accept ) { const accepts = accept . split ( "," ) ; const parsedAccepts = [ ] ; for ( let i = 0 ; i < accepts . length ; i ++ ) { const charset = parseCharset ( accepts [ i ] . trim ( ) , i ) ; if ( charset ) { parsedAccepts . push ( charset ) ; } } return parsedAccepts ; }
Parse the Accept-Charset header.
Parse the Accept - Charset header .