How to prevent Gunicorn from returning a 'Server' http header?

后端 未结 6 1101
走了就别回头了
走了就别回头了 2021-02-05 06:51

I would like to mask the version or remove the header altogether.

6条回答
  •  余生分开走
    2021-02-05 07:50

    You can edit __init__.py to set SERVER_SOFTWARE to whatever you want. But I'd really like the ability to disable this with a flag so I didn't need to reapply the patch when I upgrade.

提交回复
热议问题