Skip to content

Commit

Permalink
Merge pull request #161 from shadowgate15/feat/return-html
Browse files Browse the repository at this point in the history
fix: render returns html
  • Loading branch information
niftylettuce authored Nov 24, 2021
2 parents 8edfec5 + c37582b commit c1ab455
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ function viewsMiddleware(

if (autoRender) {
ctx.body = html
} else {
return Promise.resolve(html)
return html
}

return Promise.resolve(html)
})
}
})
Expand Down

0 comments on commit c1ab455

Please sign in to comment.