title: Replace server name with fake server name in response header in fastapi
body: <p>I am using uvicorn as server to run app using fast api. While executing endpoint url in Swagger, following message is shown in response header of server response.</p>
  <pre><code> content-length: 122 
   content-type: application/json 
   date: Sat12 Dec 2020 10:18:55 GMT 
   server: uvicorn 
  </code></pre>
  <p>How to change server name to new name as server : firstproject?
  Following code concatenates server name unciorn with new name</p>
  <pre><code>@app.middleware(&quot;http&quot;)
  async def add_custom_header(request, call_next):
      response = await call_next(request)
      response.headers['server'] = 'firstproject'
      return response
  </code></pre>
  <p>This gives the following output</p>
  <pre><code>content-length: 122 
   content-type: application/json 
   date: Sat12 Dec 2020 10:19:33 GMT 
   server: uvicornfirstproject 
  </code></pre>
  <p>How to change server name to server : firstproject in response header?</p>
  <p><strong>EDIT</strong></p>
  <p>In start_server.py</p>
  <pre><code> import uvicorn
  
  from app.main import app
  
  if __name__ == &quot;__main__&quot;:
      uvicorn.run(&quot;start_server:app --header server:firstproject&quot;, host=&quot;0.0.0.0&quot;, port=8000, reload=True)
  
      
  </code></pre>
  <p>gives following error</p>
  <pre><code>INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
  INFO:     Started reloader process [15256] using statreload
  ERROR:    Error loading ASGI app. Attribute &quot;app --header server:firstproject&quot; not found in module &quot;start_server&quot;.
  </code></pre>
  <p>I run the code from Visual studio</p>