changeset 5927:b06c56f8fab7

hgweb: revert to showing file instead of offering for download
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 22 Jan 2008 10:45:52 +0100
parents 15ef6b9c1f2f
children 3340aa5a64f7
files mercurial/hgweb/request.py tests/test-webraw.out
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Tue Jan 22 12:31:55 2008 +0100
+++ b/mercurial/hgweb/request.py	Tue Jan 22 10:45:52 2008 +0100
@@ -87,7 +87,7 @@
         headers = headers.items()
         headers.append(('Content-type', type))
         if filename:
-            headers.append(('Content-disposition', 'attachment; filename=%s' %
+            headers.append(('Content-disposition', 'inline; filename=%s' %
                             filename))
         if length:
             headers.append(('Content-length', str(length)))
--- a/tests/test-webraw.out	Tue Jan 22 12:31:55 2008 +0100
+++ b/tests/test-webraw.out	Tue Jan 22 10:45:52 2008 +0100
@@ -1,7 +1,7 @@
 200 Script output follows
 content-type: text/plain
 content-length: 157
-content-disposition: attachment; filename=sometext.txt
+content-disposition: inline; filename=sometext.txt
 
 This is just some random text
 that will go inside the file and take a few lines.