Skip to content

Commit

Permalink
style(index): use res instead of reply for response object (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Mar 28, 2022
1 parent 618181b commit 145c76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const fp = require("fastify-plugin");
* @param {object} server - Fastify instance.
*/
async function plugin(server) {
server.addHook("onRequest", async (req, reply) => {
reply.headers({
server.addHook("onRequest", async (req, res) => {
res.headers({
"Cache-Control": "no-store, max-age=0, must-revalidate",
Expires: "0",
Pragma: "no-cache",
Expand Down

0 comments on commit 145c76d

Please sign in to comment.