From 073c747786f16bd18e9a509eadd737764768bfa8 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 3 Feb 2025 08:23:44 -0800 Subject: [PATCH] try to fix dynamic scan warnings --- gunicorn_config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gunicorn_config.py b/gunicorn_config.py index e71cbe944..4bd41ab46 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -32,6 +32,11 @@ def worker_int(worker): worker.log.info("worker: received SIGINT {}".format(worker.pid)) +def post_request(worker, req, environ, resp): + if "Server" in resp.headers: + resp.headers.pop("Server") + + def fix_ssl_monkeypatching(): """ eventlet works by monkey-patching core IO libraries (such as ssl) to be non-blocking. However, there's currently