We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00faa24 commit 1be6879Copy full SHA for 1be6879
1 file changed
adafruit_httpserver/server.py
@@ -313,11 +313,10 @@ def _handle_request(
313
raise ServingFilesDisabledError
314
315
# Method is GET or HEAD, try to serve a file from the filesystem.
316
- if request.method in [GET, HEAD]:
+ if request.method in (GET, HEAD):
317
return FileResponse(
318
request,
319
filename=request.path,
320
- root_path=self.root_path,
321
head_only=request.method == HEAD,
322
)
323
0 commit comments