We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
index.html
1 parent c831aaf commit 9808f15Copy full SHA for 9808f15
adafruit_httpserver/server.py
@@ -169,8 +169,9 @@ def poll(self):
169
170
# If no handler exists and request method is GET, try to serve a file.
171
elif handler is None and request.method == HTTPMethod.GET:
172
+ filename = "index.html" if request.path == "/" else request.path
173
HTTPResponse(request).send_file(
- filename=request.path,
174
+ filename=filename,
175
root_path=self.root_path,
176
)
177
else:
0 commit comments