summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-02-03 16:55:40 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-02-03 16:55:40 +0100
commit45e59810f46c9a5c5f1a49fb2977cfbd89718899 (patch)
tree4dd2bf2a4eeeae723ea8dfc8fd41a22a2f644651 /module/web
parentadded simplejson (diff)
downloadpyload-45e59810f46c9a5c5f1a49fb2977cfbd89718899.tar.xz
unrar destination fix
Diffstat (limited to 'module/web')
-rw-r--r--module/web/pyload_app.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 3682a3962..70686532c 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -305,8 +305,8 @@ def config():
@route("/package_ui.js")
@login_required('can_see_dl')
def package_ui():
- response.header['Expires'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(time.time() + 60 * 60 * 24 * 7))
- response.header['Cache-control'] = "public"
+ response.headers['Expires'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(time.time() + 60 * 60 * 24 * 7))
+ response.headers['Cache-control'] = "public"
return render_to_response('package_ui.js')
@@ -478,4 +478,4 @@ def logs(item=-1):
fro = datetime.now()
if reversed:
data.reverse()
- return render_to_response('logs.html', {'warning': warning, 'log': data, 'from': fro.strftime('%d.%m.%Y %H:%M:%S'), 'reversed': reversed, 'perpage':perpage, 'perpage_p':sorted(perpage_p), 'iprev': 1 if item - perpage < 1 else item - perpage, 'inext': (item + perpage) if item+perpage < len(log) else item}, [pre_processor]) \ No newline at end of file
+ return render_to_response('logs.html', {'warning': warning, 'log': data, 'from': fro.strftime('%d.%m.%Y %H:%M:%S'), 'reversed': reversed, 'perpage':perpage, 'perpage_p':sorted(perpage_p), 'iprev': 1 if item - perpage < 1 else item - perpage, 'inext': (item + perpage) if item+perpage < len(log) else item}, [pre_processor])