Xianbao QIAN commited on
Commit
ba098c5
1 Parent(s): 6daa7df

also response to head request

Browse files
Files changed (1) hide show
  1. modules/app.py +2 -0
modules/app.py CHANGED
@@ -7,6 +7,8 @@ import uvicorn
7
 
8
  app = FastAPI()
9
 
 
 
10
  @app.get("/", response_class=HTMLResponse)
11
  async def get_form():
12
  return """
 
7
 
8
  app = FastAPI()
9
 
10
+
11
+ @app.head("/")
12
  @app.get("/", response_class=HTMLResponse)
13
  async def get_form():
14
  return """