From d7854cb9605df5abbefa32903b2a2b8ee455305c Mon Sep 17 00:00:00 2001 From: Cédric Picard Date: Tue, 22 Nov 2016 11:38:31 +0100 Subject: Remove any mention of http MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Picard --- readme.rst | 2 +- shareit/shareit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.rst b/readme.rst index 8044f57..310ca61 100644 --- a/readme.rst +++ b/readme.rst @@ -16,7 +16,7 @@ This service supports resume, useful for big files. Created urls have the following form: - http://shareit.exemple.com/download/90580754da3ed1b3e4be38c9b277bc9b + https://shareit.exemple.com/download/90580754da3ed1b3e4be38c9b277bc9b No real security is implemented, it is a quick and dirty hack. diff --git a/shareit/shareit.py b/shareit/shareit.py index 8f841d3..4d0dbb6 100755 --- a/shareit/shareit.py +++ b/shareit/shareit.py @@ -61,7 +61,7 @@ def upload_route(): if not size: bottle.abort(400, 'File should not be empty') digest = md5.hexdigest() - link = 'http://shareit.devys.org/download/{digest}'.format(digest=digest) + link = 'https://shareit.devys.org/download/{digest}'.format(digest=digest) fp.seek(0) filename = Path(FILES_DIR, digest) upload.save(filename.as_posix(), overwrite=True) -- cgit v1.2.3