aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Picard <cedric.picard@efrei.net>2016-11-22 11:38:31 +0100
committerVG <vg@devys.org>2016-11-22 13:17:50 +0100
commitd7854cb9605df5abbefa32903b2a2b8ee455305c (patch)
treebcf6c02f72fe54fef3dcb810e1f87e4fdf799cda
parent12240fb74c0c6f2768e1070f849cd265ea3dd181 (diff)
downloadshareit-d7854cb9605df5abbefa32903b2a2b8ee455305c.tar.gz
shareit-d7854cb9605df5abbefa32903b2a2b8ee455305c.tar.bz2
shareit-d7854cb9605df5abbefa32903b2a2b8ee455305c.zip
Remove any mention of http
Signed-off-by: Cédric Picard <cedric.picard@efrei.net>
-rw-r--r--readme.rst2
-rwxr-xr-xshareit/shareit.py2
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)