Skip to content

Commit

Permalink
Fix bug where POSTing empty body resulted render core thinking we wan…
Browse files Browse the repository at this point in the history
…t to render url
  • Loading branch information
kimmobrunfeldt committed Apr 9, 2020
1 parent 0400fa0 commit d921820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/render-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function render(_opts = {}) {
await client.send('Network.setCookies', { cookies: opts.cookies });
}

if (opts.html) {
if (_.isString(opts.html)) {
logger.info('Set HTML ..');
await page.setContent(opts.html, opts.goto);
} else {
Expand Down

0 comments on commit d921820

Please sign in to comment.