diff --git a/tiny0/database.db b/tiny0/database.db index 5d691a8..28be301 100644 Binary files a/tiny0/database.db and b/tiny0/database.db differ diff --git a/tiny0/forms.py b/tiny0/forms.py index b3dda3f..49005a0 100644 --- a/tiny0/forms.py +++ b/tiny0/forms.py @@ -31,8 +31,8 @@ def validate_URL(form, field): # If the URL does not start with http:// and https:// if not(field.data.startswith("http://")) and not(field.data.startswith("https://")): - # Add https:// to the beginning of the URL - field.data = "https://" + field.data + # Add http:// to the beginning of the URL + field.data = "http://" + field.data class URLForm(FlaskForm): diff --git a/tiny0/routes.py b/tiny0/routes.py index c0b9f84..908162a 100644 --- a/tiny0/routes.py +++ b/tiny0/routes.py @@ -52,4 +52,4 @@ def error_404(error): @app.errorhandler(500) def error_500(error): - return render_template("error.html", error_message="500 Internal Server Error"), 500 \ No newline at end of file + return render_template("error.html", error_message="500 Internal Server Error"), 500