We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef47503 + 758038c commit 3de02b0Copy full SHA for 3de02b0
end2end/server/src/handlers/lists.js
@@ -12,6 +12,16 @@ module.exports = function lists(req, res) {
12
throw new Error("App is missing");
13
}
14
15
+ // Check if Accept-Encoding header contains 'gzip'
16
+ const acceptEncoding = req.get("accept-encoding") || "";
17
+ if (!acceptEncoding.toLowerCase().includes("gzip")) {
18
+ return res.status(400).json({
19
+ success: false,
20
+ error:
21
+ "Accept-Encoding header must include 'gzip' for firewall lists endpoint",
22
+ });
23
+ }
24
+
25
const blockedIps = getBlockedIPAddresses(req.app);
26
const blockedUserAgents = getBlockedUserAgents(req.app);
27
const allowedIps = getAllowedIPAddresses(req.app);
0 commit comments