machawk1 / warcreate

Chrome extension to "Create WARC files from any webpage"
https://warcreate.com
MIT License
206 stars 13 forks source link

Pages with no CSS cause an error in the WARC creation process #63

Closed machawk1 closed 10 years ago

machawk1 commented 10 years ago

This is due to a naive loop ~354 in warcGenerator.js

    for(var cc=0; cc<cssURIs.length; cc++){
            if(requestHeader == cssURIs[cc]){
                respContent += cssData[cssURIs.indexOf(requestHeader)] + CRLF + CRLF;
                break;
            }
        }