test required + coquille virée dans file.py

This commit is contained in:
ADRN 2024-03-05 08:15:02 +01:00
parent fe056aae11
commit fc2fc240ed
2 changed files with 1 additions and 2 deletions

View file

@ -15,7 +15,7 @@ def parse_args(argv: list[str]):
required=True)
parser.add_argument('-r', '--root',
help='Root directory of the server',
type=str)
type=str, required=True)
args = parser.parse_args(argv)
return args

View file

@ -46,7 +46,6 @@ def get_resource(res: str, root: str):
with open(res_path, 'rb') as f:
content = f.read()
return 200, content
return 500,
def resolve_location(res:str, root: str):