Skip to content

Commit

Permalink
Update Webserver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BoQsc committed Aug 18, 2024
1 parent 29d4d05 commit f3ac743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver/Webserver-testing/Webserver/Webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def do_GET(self):
else:
# Serve files from the current directory for all other paths
# Serve only .html files from the current directory for all other paths
if self.path.endswith('.html'):
if self.path.endswith('.html') or self.path.endswith('.json'):
super().do_GET()
else:
self.send_error(404, "File not found")
Expand Down

0 comments on commit f3ac743

Please sign in to comment.