You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use the Basic Auth headers while rendering the page using phatomJs. However, even though I set this var while defining the var render, it is not reflected/used.
If I modify the following in index.js:
ropts = xtend({
url : url,
quality:opts.quality,
format : opts.format,
printMedia : opts.printMedia,
expects : opts.expects,
timeout : opts.timeout
}, ropts);
then the page renders fine. If this is the case then this ropts object is missing other options that can be set and thus index.js should be updated. Is this the correct approach or am I missing something?
The text was updated successfully, but these errors were encountered:
I wanted to use the Basic Auth headers while rendering the page using phatomJs. However, even though I set this var while defining the var render, it is not reflected/used.
If I modify the following in index.js:
ropts = xtend({
url : url,
quality:opts.quality,
format : opts.format,
printMedia : opts.printMedia,
expects : opts.expects,
timeout : opts.timeout
}, ropts);
to:
ropts = xtend({
url : url,
quality:opts.quality,
format : opts.format,
printMedia : opts.printMedia,
expects : opts.expects,
timeout : opts.timeout,
headers : opts.headers
}, ropts);
then the page renders fine. If this is the case then this ropts object is missing other options that can be set and thus index.js should be updated. Is this the correct approach or am I missing something?
The text was updated successfully, but these errors were encountered: