randydev commited on
Commit
7e5556e
·
verified ·
1 Parent(s): ff308cf

Update middleware/midware.js

Browse files
Files changed (1) hide show
  1. middleware/midware.js +2 -1
middleware/midware.js CHANGED
@@ -82,7 +82,8 @@ class CheckMilWare {
82
  res.setHeader("Access-Control-Allow-Headers", "Content-Type");
83
  console.log(req.headers);
84
  */
85
- delete req.headers["link"];
 
86
  const xForwardedFor = req.headers['x-forwarded-for'];
87
  const xRealIP = req.headers['x-real-ip'];
88
  const cfConnectingIP = req.headers['cf-connecting-ip'];
 
82
  res.setHeader("Access-Control-Allow-Headers", "Content-Type");
83
  console.log(req.headers);
84
  */
85
+ res.removeHeader("Link");
86
+ res.removeHeader("Connection");
87
  const xForwardedFor = req.headers['x-forwarded-for'];
88
  const xRealIP = req.headers['x-real-ip'];
89
  const cfConnectingIP = req.headers['cf-connecting-ip'];