Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions droopy
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class HTTPUploadHandler(httpserver.BaseHTTPRequestHandler):
if self.publish_files:
for name in self.published_files():
encoded_name = urllibparse.quote(_encode_str_if_py2(name))
links += '<a href="/{0}">{1}</a>'.format(encoded_name, name)
links += '<a href="./{0}">{1}</a>'.format(encoded_name, name)
links = '<div id="files">' + links + '</div>'
dico["files"] = links
# -- Add a link to discover the url
Expand Down Expand Up @@ -348,7 +348,7 @@ class HTTPUploadHandler(httpserver.BaseHTTPRequestHandler):
# -- Reply
if self.publish_files:
# The file list gives a feedback for the upload success
self.send_resp_headers(301, {'Location': '/'}, end=True)
self.send_resp_headers(301, {'Location': './'}, end=True)
else:
self.send_html(self.html("success"))

Expand Down