Uvicorn: Disable `server` header

Hi,

I posted this question in github but was told to post here.

Basically, I’m looking for a way to disable the server header from being returned in the response. The only solution I know of is to monkey-patch it but I was wondering if there is a better way.

Thanks

It doesn’t appear to be possible in uvicorn, other than perhaps providing the empty string as the value to the Config. I don’t know if this is an option for you, but nginx (or the like) sitting in front of your uvicorn process can strip headers before delivering the response to the client.