src/plugins/instrument_xhr.js
function getResponseHeaders(xhr) {
    let raw = xhr.getAllResponseHeaders();
    let parts = raw.replace(/\s+$/, '').split(/\n/);
    for (let i = 0; i < parts.length; i++) {
        parts[i] = parts[i].replace(/\r/g, '').replace(/^\s+/, '').replace(/\s+$/, '');
    }
    return parts;
}
function getResponseHeaders(xhr) {
    let raw = xhr.getAllResponseHeaders();
    let parts = raw.replace(/\s+$/, '').split(/\n/);
    for (let i = 0; i < parts.length; i++) {
        parts[i] = parts[i].replace(/\r/g, '').replace(/^\s+/, '').replace(/\s+$/, '');
    }
    return parts;
}
function getResponseHeaders ( xhr ) { let raw = xhr . getAllResponseHeaders ( ) ; let parts = raw . replace ( / \s+$ / , '' ) . split ( / \n / ) ; for ( let i = 0 ; i < parts . length ; i ++ ) { parts [ i ] = parts [ i ] . replace ( / \r / g , '' ) . replace ( / ^\s+ / , '' ) . replace ( / \s+$ / , '' ) ; } return parts ; }
Normalize the getAllResponseHeaders output
Normalize the getAllResponseHeaders output