grunt-phantomcss icon indicating copy to clipboard operation
grunt-phantomcss copied to clipboard

Custom headers seems not to be working

Open nei opened this issue 9 years ago • 0 comments

Guys, I am trying to setup custom headers but it seems not to work. The way I am setting up the header is this ... casper.start(); tests.forEach(function (test) {

    console.log('Running Phantom CSS on Url: ' + test.url);
    casper.open(test.url, {
        method: 'get',
        headers: {
            'Host': 'mydomain.com'
        }
    }).then(function(response) {

...

nei avatar Mar 13 '15 10:03 nei