Skip to content

Commit 1684782

Browse files
fix: allow serving .xml and .txt static files
1 parent 5679fc4 commit 1684782

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def index():
117117
logger.info("Accessing index page")
118118
return send_from_directory('.', 'index.html')
119119

120-
ALLOWED_STATIC_EXT = {'.html', '.css', '.js', '.json', '.png', '.jpg', '.jpeg', '.gif', '.svg', '.ico', '.woff', '.woff2', '.ttf'}
120+
ALLOWED_STATIC_EXT = {'.html', '.css', '.js', '.json', '.png', '.jpg', '.jpeg', '.gif', '.svg', '.ico', '.woff', '.woff2', '.ttf', '.xml', '.txt'}
121121

122122
@app.route('/<path:filename>')
123123
def static_files(filename):

0 commit comments

Comments
 (0)