--- 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.