lib/normalizers/v1.js
function (requestV1) {
        if (!requestV1) { return; }
        if (requestV1.headers && _.isEmpty(requestV1.headerData)) {
            // this converts a newline concatenated string of headers to an array, so there are no descriptions
            return v1Common.parseHeaders(requestV1.headers, true);
        }

        // however, if non empty headerData already exists, sanitize it.
        return normalizeEntities(requestV1.headerData, this.options);
    }
function (requestV1) {
        if (!requestV1) { return; }
        if (requestV1.headers && _.isEmpty(requestV1.headerData)) {
            // this converts a newline concatenated string of headers to an array, so there are no descriptions
            return v1Common.parseHeaders(requestV1.headers, true);
        }

        // however, if non empty headerData already exists, sanitize it.
        return normalizeEntities(requestV1.headerData, this.options);
    }
function ( requestV1 ) { if ( ! requestV1 ) { return ; } if ( requestV1 . headers && _ . isEmpty ( requestV1 . headerData ) ) { // this converts a newline concatenated string of headers to an array, so there are no descriptions return v1Common . parseHeaders ( requestV1 . headers , true ) ; } // however, if non empty headerData already exists, sanitize it. return normalizeEntities ( requestV1 . headerData , this . options ) ; }
Normalizes a list of header data from the incoming raw v1 request.

@param {Object} requestV1 - The raw v1 request object.
@returns {Object[]} - The normalized list of header datum values.
Normalizes a list of header data from the incoming raw v1 request .