From d007aac6244a63ee49cf155de3c8af1b4b94d4c3 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 29 Dec 2013 12:18:51 +0100 Subject: added auth to request class --- pyload/web/pyload_app.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'pyload/web/pyload_app.py') 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 . - - @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/') 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")) -- cgit v1.2.3