aboutsummaryrefslogtreecommitdiff
path: root/fhost.py
diff options
context:
space:
mode:
Diffstat (limited to 'fhost.py')
-rwxr-xr-xfhost.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/fhost.py b/fhost.py
index f50b235..5ad8938 100755
--- a/fhost.py
+++ b/fhost.py
@@ -1,6 +1,24 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
+"""
+ Copyright © 2020 Mia Herkt
+ Licensed under the EUPL, Version 1.2 or - as soon as approved
+ by the European Commission - subsequent versions of the EUPL
+ (the "License");
+ You may not use this work except in compliance with the License.
+ You may obtain a copy of the license at:
+
+ https://joinup.ec.europa.eu/software/page/eupl
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ either express or implied.
+ See the License for the specific language governing permissions
+ and limitations under the License.
+"""
+
from flask import Flask, abort, escape, make_response, redirect, request, send_from_directory, url_for, Response
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
@@ -33,6 +51,7 @@ app.config["FHOST_EXT_OVERRIDE"] = {
"video/webm" : ".webm",
"video/x-matroska" : ".mkv",
"application/octet-stream" : ".bin",
+ "text/plain" : ".log",
"text/plain" : ".txt",
"text/x-diff" : ".diff",
}
bgstack15