Skip to content

Commit d921820

Browse files
Fix bug where POSTing empty body resulted render core thinking we want to render url
1 parent 0400fa0 commit d921820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/render-core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function render(_opts = {}) {
103103
await client.send('Network.setCookies', { cookies: opts.cookies });
104104
}
105105

106-
if (opts.html) {
106+
if (_.isString(opts.html)) {
107107
logger.info('Set HTML ..');
108108
await page.setContent(opts.html, opts.goto);
109109
} else {

0 commit comments

Comments
 (0)