hgweb: revert to showing file instead of offering for download
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Tue, 22 Jan 2008 10:45:52 +0100
changeset 5927 b06c56f8fab7
parent 5926 15ef6b9c1f2f
child 5928 3340aa5a64f7
hgweb: revert to showing file instead of offering for download
mercurial/hgweb/request.py
tests/test-webraw.out
--- 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.