diff options
Diffstat (limited to 'pyload/web/pyload_app.py')
-rw-r--r-- | pyload/web/pyload_app.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/pyload/web/pyload_app.py b/pyload/web/pyload_app.py index 70ada0b53..32b288e57 100644 --- a/pyload/web/pyload_app.py +++ b/pyload/web/pyload_app.py @@ -1,21 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -""" - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, - or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, see <http://www.gnu.org/licenses/>. - - @author: RaNaN -""" + +############################################################################### +# Copyright(c) 2008-2013 pyLoad Team +# http://www.pyload.org +# +# This file is part of pyLoad. +# pyLoad is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Subjected to the terms and conditions in LICENSE +# +# @author: RaNaN +############################################################################### + import time from os.path import join, exists @@ -35,8 +35,8 @@ GZIPPED = {} @route('/icons/<path:path>') def serve_icon(path): - # TODO - return redirect('/images/icon.png') + # TODO: send real file, no redirects + return redirect(PREFIX if PREFIX else '/' + '../images/icon.png') # return static_file(path, root=join("tmp", "icons")) |