Skip to content

Commit 8276ca5

Browse files
authored
Fixed alternative endpoints on MigrationServer. (#67)
1 parent 0d46845 commit 8276ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filetracker/servers/migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, redirect_url, dir=None):
2424
def handle_redirect(self, environ, start_response, present_handler):
2525
endpoint, path = base.get_endpoint_and_path(environ)
2626

27-
if os.path.isfile(os.path.join(self.dir, path)):
27+
if endpoint != 'files' or os.path.isfile(os.path.join(self.dir, path)):
2828
logger.debug('Handling request to %s by ourselves', path)
2929
return present_handler(environ, start_response)
3030

0 commit comments

Comments
 (0)