Skip to content

Commit 1be6879

Browse files
committed
Minor refactor
1 parent 00faa24 commit 1be6879

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_httpserver/server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,10 @@ def _handle_request(
313313
raise ServingFilesDisabledError
314314

315315
# Method is GET or HEAD, try to serve a file from the filesystem.
316-
if request.method in [GET, HEAD]:
316+
if request.method in (GET, HEAD):
317317
return FileResponse(
318318
request,
319319
filename=request.path,
320-
root_path=self.root_path,
321320
head_only=request.method == HEAD,
322321
)
323322

0 commit comments

Comments
 (0)